summaryrefslogtreecommitdiff
path: root/db/migrate/20140407081512_create_match_team_join_table.rb
blob: c2ed1b7a0f8d69180939f23b3e471a9f625c32c2 (plain)
1
2
3
4
5
6
7
8
class CreateMatchTeamJoinTable < ActiveRecord::Migration
  def change
    create_join_table :matches, :teams do |t|
      # t.index [:match_id, :team_id]
      # t.index [:team_id, :match_id]
    end
  end
end