Files
openfoodnetwork/db/migrate/20120327000563_add_some_indexes.rb
Andrew Spinks cd1938a74e spree install.
2012-03-27 11:06:49 +11:00

12 lines
375 B
Ruby

class AddSomeIndexes < ActiveRecord::Migration
def change
add_index :taxons, :permalink
add_index :taxons, :parent_id
add_index :taxons, :taxonomy_id
add_index :assets, :viewable_id
add_index :assets, [:viewable_type, :type]
add_index :product_properties, :product_id
add_index :option_values_variants, [:variant_id, :option_value_id]
end
end