summaryrefslogtreecommitdiff
path: root/db/migrate/20140422061631_create_matches.rb
blob: 3786d52e8e987d47f1671e256e380a5cbdacf342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class CreateMatches < ActiveRecord::Migration
  def change
    create_table :matches do |t|
      t.integer :status
      t.references :tournament_stage, index: true
      t.string :name
      t.references :winner, index: true
      t.string :remote_id
      t.integer :submitted_peer_evaluations

      t.timestamps
    end
  end
end