Added new indexes.

This commit is contained in:
Martin Edenhofer 2013-01-02 15:22:34 +01:00
parent 34b3392c46
commit f27f11abd9

View file

@ -19,7 +19,12 @@ class CreateHistory < ActiveRecord::Migration
add_index :histories, [:created_by_id] add_index :histories, [:created_by_id]
add_index :histories, [:created_at] add_index :histories, [:created_at]
add_index :histories, [:history_object_id] add_index :histories, [:history_object_id]
add_index :histories, [:history_attribute_id]
add_index :histories, [:history_type_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| create_table :history_types do |t|
t.column :name, :string, :limit => 250, :null => false t.column :name, :string, :limit => 250, :null => false