diff options
author | nfoy <nfoy@purdue.edu> | 2014-04-28 20:05:54 -0400 |
---|---|---|
committer | nfoy <nfoy@purdue.edu> | 2014-04-28 20:05:54 -0400 |
commit | 46ad1b2f7d7ad744e86c78f8e46b330a9fe286f4 (patch) | |
tree | d0588e1c682fbf8867297eec2106812fc3d82086 | |
parent | 3ab30900798a838b399d06f28251b6cdd82a94de (diff) |
Fixed seeding issue
-rw-r--r-- | db/seeds.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/db/seeds.rb b/db/seeds.rb index 50ee7db..c648053 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -148,6 +148,7 @@ if Rails.env.development? #Hearthstone tournament hearth = Tournament.create(game: hearthstone, name: "Hearthstone Seed", min_teams_per_match: 1, min_players_per_team: 1, max_teams_per_match: 2, max_players_per_team: 1, scoring_method: "winner_takes_all") + hearth.hosts.push(User.find(1)) hearth.join(davis) hearth.join(foy) @@ -175,6 +176,8 @@ if Rails.env.development? min_teams_per_match: 2, max_teams_per_match: 2, scoring_method: "winner_takes_all") + custom.hosts.push(User.find(1)) + custom.stages.create(scheduling_method: "round_robin" , seeding_method: "random_seeding") @@ -182,6 +185,4 @@ if Rails.env.development? g.each do |player| custom.join(player) end - -end - +end
\ No newline at end of file |