summaryrefslogtreecommitdiff
path: root/db/migrate/20140401215720_create_matches.rb
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-01 18:04:55 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-01 18:04:55 -0400
commite6b160bd81e51e0bd88e5c2563a06ea5f0d64620 (patch)
treed6358feeaf8399f97a363ccccc4d2de24bc48db9 /db/migrate/20140401215720_create_matches.rb
parentac77cea14d5708f47df42774b0b281391b2e3c89 (diff)
parenta2de6b22a720671b796c88c694db905665fda142 (diff)
Removed ger
Diffstat (limited to 'db/migrate/20140401215720_create_matches.rb')
-rw-r--r--db/migrate/20140401215720_create_matches.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20140401215720_create_matches.rb b/db/migrate/20140401215720_create_matches.rb
new file mode 100644
index 0000000..31eea12
--- /dev/null
+++ b/db/migrate/20140401215720_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