summaryrefslogtreecommitdiff
path: root/db/migrate/20140421143225_create_bracket_matches.rb
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-21 10:34:42 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-21 10:34:42 -0400
commit92fadaf713dc9fffd215365a26035a638404c5a1 (patch)
treefe3e4941356b19997547332e4892475ab2d31b6a /db/migrate/20140421143225_create_bracket_matches.rb
parent615c415a05fa219e9d8a43fa0d8863c2deadc04e (diff)
parentc3d46241a2298ecec052332c1767a65b010cf9a1 (diff)
Merge branch 'clean2'
Diffstat (limited to 'db/migrate/20140421143225_create_bracket_matches.rb')
-rw-r--r--db/migrate/20140421143225_create_bracket_matches.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20140421143225_create_bracket_matches.rb b/db/migrate/20140421143225_create_bracket_matches.rb
new file mode 100644
index 0000000..3323e31
--- /dev/null
+++ b/db/migrate/20140421143225_create_bracket_matches.rb
@@ -0,0 +1,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