summaryrefslogtreecommitdiff
path: root/db/migrate/20140304020948_create_games.rb
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-03-03 11:40:05 -0500
committerAndrewMurrell <amurrel@purdue.edu>2014-03-03 11:40:05 -0500
commitb59aa7c21ae04a399639209717b980d731c5bf13 (patch)
tree1458b7c7deb250c460850f46b204891532ae967c /db/migrate/20140304020948_create_games.rb
parentb21c833a0974b79585d94e2afa4db980a5061123 (diff)
Some of the stuff I forgot to commit last night. Updated and cleaned up some pages as well as getting the gameType listing to work.
Diffstat (limited to 'db/migrate/20140304020948_create_games.rb')
-rw-r--r--db/migrate/20140304020948_create_games.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20140304020948_create_games.rb b/db/migrate/20140304020948_create_games.rb
new file mode 100644
index 0000000..59d4ef0
--- /dev/null
+++ b/db/migrate/20140304020948_create_games.rb
@@ -0,0 +1,13 @@
+class CreateGames < ActiveRecord::Migration
+ def change
+ create_table :games do |t|
+ t.text :name
+ t.integer :players_per_team
+ t.integer :teams_per_match
+ t.integer :set_rounds
+ t.integer :randomized_teams
+
+ t.timestamps
+ end
+ end
+end