diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-06 14:00:03 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-06 14:00:03 -0400 |
commit | 2b5b1d4aba906bc5fb5b219a02a611b6b25253e3 (patch) | |
tree | 65f033db2d74cc0126dc9a3cd3267c77c76f8ba8 /db/seeds.rb | |
parent | 6be38bc3b6ee5546c0d1f26497c2687b4138df35 (diff) |
seed the server settings
Diffstat (limited to 'db/seeds.rb')
-rw-r--r-- | db/seeds.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/db/seeds.rb b/db/seeds.rb index 986256c..6efc3e7 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -6,6 +6,9 @@ # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel', city: cities.first) # +p = User.permission_bits +Server.create(default_user_permissions: p[:join_tournament] | p[:create_pm]) + Game.create(name: "League of Legends",min_players_per_team: 5, max_players_per_team: 5, min_teams_per_match: 2, max_teams_per_match: 2, set_rounds: nil, randomized_teams: true) Game.create(name: "Chess", min_players_per_team: 1, max_players_per_team: 1, min_teams_per_match: 2, max_teams_per_match: 2, set_rounds: nil, randomized_teams: true) Game.create(name: "Hearthstone", min_players_per_team: 1, max_players_per_team: 1, min_teams_per_match: 2, max_teams_per_match: 2, set_rounds: 1, randomized_teams: false) |