summaryrefslogtreecommitdiff
path: root/db/migrate/20140405012455_create_matches.rb
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-04 21:26:30 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-04 21:26:30 -0400
commit1237ba91e19972d71dc81f57d847798a3ed88a63 (patch)
tree5b0a4c1cc60b53848634c26e102cadb0efee4de7 /db/migrate/20140405012455_create_matches.rb
parentd421e2ce782c00fa77f6aa2f18d54eb429000c9f (diff)
parentfaf4db767165d199b14777cebc70a37812313f08 (diff)
Merge branch 'clean2'
Diffstat (limited to 'db/migrate/20140405012455_create_matches.rb')
-rw-r--r--db/migrate/20140405012455_create_matches.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20140405012455_create_matches.rb b/db/migrate/20140405012455_create_matches.rb
new file mode 100644
index 0000000..31eea12
--- /dev/null
+++ b/db/migrate/20140405012455_create_matches.rb
@@ -0,0 +1,13 @@
+class CreateMatches < ActiveRecord::Migration
+ def change
+ create_table :matches do |t|
+ t.integer :status
+ t.references :tournament, index: true
+ t.string :name
+ t.references :winner, index: true
+ t.string :remote_id
+
+ t.timestamps
+ end
+ end
+end