summaryrefslogtreecommitdiff
path: root/db/migrate/20140429074434_create_matches.rb
blob: d80db5f3d52ba0193d29a62b90c294136400b99d (plain)
1
2
3
4
5
6
7
8
9
10
11
class CreateMatches < ActiveRecord::Migration
  def change
    create_table :matches do |t|
      t.integer :status
      t.references :tournament_stage, index: true
      t.references :winner, index: true

      t.timestamps
    end
  end
end