rosa-build/db/migrate/20130717112337_add_index_to...

7 lines
178 B
Ruby
Raw Normal View History

2013-07-17 12:33:34 +01:00
class AddIndexToRelation < ActiveRecord::Migration
def change
add_index :relations, [:actor_type, :actor_id]
add_index :relations, [:target_type, :target_id]
end
end