summaryrefslogtreecommitdiff
path: root/db/migrate/20140325202823_create_matches.rb
blob: 67a5b7bbb33ee3063fb7854fcd815d383634b46f (plain)
1
2
3
4
5
6
7
8
9
10
11
class CreateMatches < ActiveRecord::Migration
  def change
    create_table :matches do |t|
      t.references :tournament, index: true
      t.string :name
      t.references :winner, index: true

      t.timestamps
    end
  end
end