summaryrefslogtreecommitdiff
path: root/db/migrate/20140424202557_create_matches.rb
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-24 17:10:42 -0400
committertkimia <tkimia@purdue.edu>2014-04-24 17:10:42 -0400
commit74814dad443659e1e0875329c95cc0257de25b3b (patch)
tree04e1e00daa8da22cfff84d264b1af2edd37ad2b4 /db/migrate/20140424202557_create_matches.rb
parentdd9a7a6b55fd3a6a494ba41fc133b1f1056c66a9 (diff)
parentcba88607fef562846958a0baeda420fa2d7529ed (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'db/migrate/20140424202557_create_matches.rb')
-rw-r--r--db/migrate/20140424202557_create_matches.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20140424202557_create_matches.rb b/db/migrate/20140424202557_create_matches.rb
new file mode 100644
index 0000000..bac92d1
--- /dev/null
+++ b/db/migrate/20140424202557_create_matches.rb
@@ -0,0 +1,13 @@
+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.text :remote_id
+ t.integer :submitted_peer_evaluations
+
+ t.timestamps
+ end
+ end
+end