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

7 lines
178 B
Ruby

class AddIndexToRelation < ActiveRecord::Migration
def change
add_index :relations, [:actor_type, :actor_id]
add_index :relations, [:target_type, :target_id]
end
end