clarion/db/migrate/20151021183039_create_join_...

9 lines
345 B
Ruby
Raw Normal View History

class CreateJoinTableVolunteerVolunteerTeam < ActiveRecord::Migration[4.2]
2015-10-21 23:13:39 +03:00
def change
create_join_table :volunteers, :volunteer_teams do |t|
2019-04-28 21:10:54 +03:00
t.index [:volunteer_id, :volunteer_team_id], name: "volunteer_id_volunteer_team_id"
t.index [:volunteer_team_id, :volunteer_id], name: "volunteer_team_id_volunteer_id"
2015-10-21 23:13:39 +03:00
end
end
end