Sha256: bc610fc0405d872c0f64740b31b26a5fba3c5baa9ad96236b8795e3f3acde38a

Contents?: true

Size: 1.31 KB

Versions: 1

Compression:

Stored size: 1.31 KB

Contents

# encoding: utf-8

# note: timezone for games (play_at) is *always* CET (central european time)

#########################################################
##  Euro 2008  Austria-Switzerland (7 June - 29 June)

# see http://en.wikipedia.org/wiki/UEFA_Euro_2008
# or  http://de.wikipedia.org/wiki/Fußball-Europameisterschaft_2008


##  16 teams
##  31 games
##  22 days    

euro = Event.create!( league:  League.find_by_key!('euro'),
                      season:  Season.find_by_key!('2008'),
                      start_at: Time.cet( '2008-06-07 18:00' ),
                      team3: false )


euro.add_teams_from_ary!([
  'sui',
  'aut',
  'gre',
  'ned',
  'cro',
  'ita',
  'cze',
  'swe',
  'rou',
  'ger',
  'por',
  'esp',
  'pol',
  'fra',
  'tur',
  'rus'
])

euroa = Group.create!( event: euro, pos: 1, title: 'Gruppe A' )
eurob = Group.create!( event: euro, pos: 2, title: 'Gruppe B' )
euroc = Group.create!( event: euro, pos: 3, title: 'Gruppe C' )
eurod = Group.create!( event: euro, pos: 4, title: 'Gruppe D' )

euroa.add_teams_from_ary!(['sui', 'cze', 'por', 'tur'])

eurob.add_teams_from_ary!(['aut', 'cro', 'ger', 'pol'])

euroc.add_teams_from_ary!(['ned', 'ita', 'rou', 'fra'])

eurod.add_teams_from_ary!(['gre', 'swe', 'esp', 'rus'])

## The End
#################

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sportdb-0.9.0 db/euro/2008.rb