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