change text to string for sale_audits migrate
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -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/*
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user