diff options
author | guntasgrewal <guntasgrewal@gmail.com> | 2014-03-06 17:34:41 -0500 |
---|---|---|
committer | guntasgrewal <guntasgrewal@gmail.com> | 2014-03-06 17:34:41 -0500 |
commit | 0e8af95b4656d851cc43b45f8c48fd2c4d4c1ed2 (patch) | |
tree | 263f0e970f8ce981470e591d94d14700810d7853 /db/migrate/20140306222314_create_tournaments.rb | |
parent | 240d8602fb6aaf249b33db7b0c2f8a72add63658 (diff) | |
parent | f5d36fc67d1994b7cc1ce02e7be2767ffcb47857 (diff) |
merge ready?
Diffstat (limited to 'db/migrate/20140306222314_create_tournaments.rb')
-rw-r--r-- | db/migrate/20140306222314_create_tournaments.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20140306222314_create_tournaments.rb b/db/migrate/20140306222314_create_tournaments.rb new file mode 100644 index 0000000..c7ec765 --- /dev/null +++ b/db/migrate/20140306222314_create_tournaments.rb @@ -0,0 +1,16 @@ +class CreateTournaments < ActiveRecord::Migration + def change + create_table :tournaments do |t| + t.references :game, index: true + 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.integer :status + + t.timestamps + end + end +end |