From 46ad1b2f7d7ad744e86c78f8e46b330a9fe286f4 Mon Sep 17 00:00:00 2001 From: nfoy Date: Mon, 28 Apr 2014 20:05:54 -0400 Subject: Fixed seeding issue --- db/seeds.rb | 7 ++++--- 1 file 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 -- cgit v1.2.3-2-g168b