This commit is contained in:
phyusin
2018-10-19 18:00:03 +06:30
parent 2ff55bca44
commit 267d69c76c

View File

@@ -9,11 +9,11 @@ class CreateSaleAudits < ActiveRecord::Migration[5.1]
t.string :action_by, :null => false
t.string :approved_by, :null => true
t.datetime :approved_at, :null => true
t.text :remark
t.longtext :remark
t.timestamps
end
add_index :sale_audits, :remark, remark: 'remark', type: :fulltext
add_index :sale_audits, :remark, remark: 'remark', type: :longtext
add_index :sale_audits, [:sale_id, :action, :action_at]
end
end