Skip to content

Commit

Permalink
up setups
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldb committed Jun 1, 2014
1 parent c069c45 commit c6e19f6
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion db/setups/brazil2014/seeds.rb
Expand Up @@ -3,7 +3,7 @@
# - world cup

sportdb_setups = [
['national-teams', 'teams'],
['national-teams', 'all'],
['world-cup', '2014']
]

Expand Down
14 changes: 13 additions & 1 deletion db/setups/demo/pools.rb
Expand Up @@ -15,18 +15,30 @@
pool1.players << demo
=end

=begin
bl = Event.find_by_key!( 'de.2013/14' )
pool2 = Pool.create!( event: bl, title: 'Demo', user: cristiano, welcome: '' )
pool2.players << cristiano
pool2.players << demo
=end


=begin
cl = Event.find_by_key!( 'cl.2013/14' )
pool3 = Pool.create!( event: cl, title: 'Demo', user: wayne, welcome: '' )
pool3.players << wayne
pool3.players << demo
=end

world = Event.find_by_key!( 'world.2014' )

pool4 = Pool.create!( event: world, title: 'Demo', user: lionel, welcome: '' )

pool4.players << lionel # also auto add admin as first player
pool4.players << cirstiano
pool4.players << wayne
pool4.players << demo

6 changes: 6 additions & 0 deletions db/setups/demo/seeds.rb
Expand Up @@ -8,7 +8,12 @@
# ['world-cup', '2014_quali_europe']
# ]

sportdb_setups += [
['national-teams', 'all'],
['world-cup', '2014']
]

=begin
# clubs
# - champions league (europe/uefa)
# - deutsche bundesliga
Expand All @@ -22,6 +27,7 @@
['de-deutschland', '2013_14'],
['europe-champions-league', '2013_14']
]
=end


sportdb_setups.each do |setup|
Expand Down
3 changes: 2 additions & 1 deletion db/setups/uits/pools.rb
Expand Up @@ -10,5 +10,6 @@

behrooz = User.find_by_key!( 'behroozs' )

Pool.create!( event: world, title: 'UITS', user: behrooz, welcome: '' )
pool = Pool.create!( event: world, title: 'UITS', user: behrooz, welcome: '' )
pool.players << behrooz

2 changes: 1 addition & 1 deletion db/setups/uits/seeds.rb
Expand Up @@ -3,7 +3,7 @@
# - world cup

sportdb_setups = [
['national-teams', 'teams'],
['national-teams', 'all'],
['world-cup', '2014']
]

Expand Down

0 comments on commit c6e19f6

Please sign in to comment.