grantcallendar/db/migrate/20220830110315_create_join_...

9 lines
242 B
Ruby

class CreateJoinTableDotationLocation < ActiveRecord::Migration[5.2]
def change
create_join_table :dotations, :locations do |t|
# t.index [:dotation_id, :location_id]
# t.index [:location_id, :dotation_id]
end
end
end