From 1ae8bc568a37bac3cfa3a55807d8feff73edcf18 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 16 Nov 2015 19:40:45 +0100 Subject: [PATCH] Increased size of value_* col. --- db/migrate/20151115000003_update_history.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 db/migrate/20151115000003_update_history.rb diff --git a/db/migrate/20151115000003_update_history.rb b/db/migrate/20151115000003_update_history.rb new file mode 100644 index 000000000..f939fc225 --- /dev/null +++ b/db/migrate/20151115000003_update_history.rb @@ -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