diff options
author | DavisLWebb <davislwebb@ymail.com> | 2014-04-23 21:34:10 -0400 |
---|---|---|
committer | DavisLWebb <davislwebb@ymail.com> | 2014-04-23 21:34:10 -0400 |
commit | 8010bd28db76dd5783b2be046de4c63fa27738f6 (patch) | |
tree | 1f8ea8ff66dae3f5023804d131796ea6b6a666b1 /db/migrate/20140424013234_create_games.rb | |
parent | d90e7d47ed0900f2f8df62dba2e463752e0e3e81 (diff) | |
parent | d1dbfb1dcd4810f538826fa5e448bdda0998b38e (diff) |
Merge branch 'clean2'
Diffstat (limited to 'db/migrate/20140424013234_create_games.rb')
-rw-r--r-- | db/migrate/20140424013234_create_games.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20140424013234_create_games.rb b/db/migrate/20140424013234_create_games.rb new file mode 100644 index 0000000..46ed30d --- /dev/null +++ b/db/migrate/20140424013234_create_games.rb @@ -0,0 +1,17 @@ +class CreateGames < ActiveRecord::Migration + def change + create_table :games do |t| + t.string :name + t.integer :min_players_per_team + t.integer :max_players_per_team + t.integer :min_teams_per_match + t.integer :max_teams_per_match + t.integer :set_rounds + t.boolean :randomized_teams + t.string :sampling_method + + t.timestamps + end + add_index :games, :name, unique: true + end +end |