summaryrefslogtreecommitdiff
path: root/db/migrate/20140304015209_create_tournaments.rb
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-02-27 17:44:37 -0500
committerAndrewMurrell <amurrel@purdue.edu>2014-02-27 17:44:37 -0500
commit068e95231c3d2cee113cf77af67ce785d853429e (patch)
tree982b1bd9736e542ff66979ca79bb19a7569ec615 /db/migrate/20140304015209_create_tournaments.rb
parentf3f17dcd9755020276062caae7c0677eff88cb2f (diff)
Added the seeding to generation.
Diffstat (limited to 'db/migrate/20140304015209_create_tournaments.rb')
-rw-r--r--db/migrate/20140304015209_create_tournaments.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20140304015209_create_tournaments.rb b/db/migrate/20140304015209_create_tournaments.rb
new file mode 100644
index 0000000..36fcf7e
--- /dev/null
+++ b/db/migrate/20140304015209_create_tournaments.rb
@@ -0,0 +1,9 @@
+class CreateTournaments < ActiveRecord::Migration
+ def change
+ create_table :tournaments do |t|
+ t.references :game, index: true
+
+ t.timestamps
+ end
+ end
+end