summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-24 19:23:34 -0400
committertkimia <tkimia@purdue.edu>2014-04-24 19:23:34 -0400
commitfedc51fb2d95d1e67c06e560448563a64fa458b1 (patch)
tree692d3ebc7fb2184a8542b28091a7e1294f301b7d
parent9788bda30fd076215c720c49ebf8b6ae2303930d (diff)
parentf14410d0e7ea249971265f3466ec246c62e6f3f5 (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
-rw-r--r--db/seeds.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/seeds.rb b/db/seeds.rb
index 61cf44a..78c8ea0 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -123,4 +123,21 @@ if Rails.env.development?
end
tourn5.join(players_for_league[9])
+ tourn6 = Tournament.create(game_id: 1, status: 0, name: "3 teams per match", min_players_per_team: 1, max_players_per_team: 1, min_teams_per_match: 3,
+ max_teams_per_match: 3, set_rounds: 1, randomized_teams: true, sampling_method: nil)
+
+ for i in 0..9
+ if i == 0
+ tourn6.hosts.push(players_for_league[i])
+ end
+ tourn6.join(players_for_league[i])
+ end
+ tourn6.join(players_for_league[9])
+ tourn6.join(davis)
+ tourn6.join(foy)
+ tourn6.join(guntas)
+ tourn6.join(luke)
+ tourn6.join(marco)
+
+
end