From f27f11abd92980d9a63038ec40558deb56d51785 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 2 Jan 2013 15:22:34 +0100 Subject: [PATCH] Added new indexes. --- db/migrate/20120101000050_create_history.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/db/migrate/20120101000050_create_history.rb b/db/migrate/20120101000050_create_history.rb index 265ef6334..823e61f8a 100644 --- a/db/migrate/20120101000050_create_history.rb +++ b/db/migrate/20120101000050_create_history.rb @@ -19,7 +19,12 @@ class CreateHistory < ActiveRecord::Migration add_index :histories, [:created_by_id] add_index :histories, [:created_at] add_index :histories, [:history_object_id] + add_index :histories, [:history_attribute_id] add_index :histories, [:history_type_id] + add_index :histories, [:id_to] + add_index :histories, [:id_from] + add_index :histories, [:value_from] + add_index :histories, [:value_to] create_table :history_types do |t| t.column :name, :string, :limit => 250, :null => false