change text to string for sale_audits migrate

This commit is contained in:
phyusin
2018-08-20 11:23:47 +06:30
parent ad5815b23e
commit 0ca0252fed
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -28,6 +28,7 @@ capybara-*.html
/public/uploads/* /public/uploads/*
/public/swf/* /public/swf/*
/public/receipts/ /public/receipts/
/public/orders_*
/public/*.mp3 /public/*.mp3
/coverage/ /coverage/
/spec/tmp/* /spec/tmp/*

View File

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