Increased size of value_* col.

This commit is contained in:
Martin Edenhofer 2015-11-16 19:40:45 +01:00
parent 22313ab80d
commit 1ae8bc568a

View 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