summaryrefslogtreecommitdiff
path: root/db/migrate/20140307022749_create_tournament_hosts_join_table.rb
blob: 0eff5507209dd9fd1a4a7d621f02deec597af62d (plain)
1
2
3
4
5
6
7
8
class CreateTournamentHostsJoinTable < ActiveRecord::Migration
  def change
    create_join_table :users, :tournaments do |t|
      # t.index [:user_id, :tournament_id]
      # t.index [:tournament_id, :user_id]
    end
  end
end