summaryrefslogtreecommitdiff
path: root/db/migrate/20140424230650_create_tournament_players_join_table.rb
blob: be240e8240d9b68e211f302bc489355d3fea91bb (plain)
1
2
3
4
5
6
7
8
class CreateTournamentPlayersJoinTable < ActiveRecord::Migration
  def change
    create_join_table :players, :tournaments do |t|
      # t.index [:player_id, :tournament_id]
      # t.index [:tournament_id, :player_id]
    end
  end
end