summaryrefslogtreecommitdiff
path: root/db/migrate/20140428223911_create_bracket_matches.rb
blob: 3323e318db9bfe9495525a36bd2e5a0cec9d398c (plain)
1
2
3
4
5
6
7
8
9
10
11
class CreateBracketMatches < ActiveRecord::Migration
  def change
    create_table :bracket_matches do |t|
      t.references :bracket, index: true
      t.references :match, index: true
      t.references :predicted_winner, index: true

      t.timestamps
    end
  end
end