Increased size of value_* col.
This commit is contained in:
parent
22313ab80d
commit
1ae8bc568a
1 changed files with 12 additions and 0 deletions
12
db/migrate/20151115000003_update_history.rb
Normal file
12
db/migrate/20151115000003_update_history.rb
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
class UpdateHistory < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
remove_index :histories, [:value_from]
|
||||||
|
remove_index :histories, [:value_to]
|
||||||
|
change_table(:histories) do |t|
|
||||||
|
t.change :value_from, :text, limit: 500, null: true
|
||||||
|
t.change :value_to, :text, limit: 500, null: true
|
||||||
|
end
|
||||||
|
add_index :histories, [:value_from], length: 255
|
||||||
|
add_index :histories, [:value_to], length: 255
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue