Sha256: fd376add2f3ed3f2e3d243c62d1a71abee01321e3216d965126a2755712af50e

Contents?: true

Size: 1.32 KB

Versions: 2

Compression:

Stored size: 1.32 KB

Contents

# encoding: utf-8


## fix: change time zone to ??

##################################
##  Copa América 2011 (Argentina)
#
#   more info -> http://en.wikipedia.org/wiki/2011_Copa_América
#             -> http://de.wikipedia.org/wiki/Copa_América_2011

copa = Event.create!( key:     'america.2011',
                    title:   'Copa América 2011',
                    start_at: Time.cet( '2011-07-01 12:00' ),
                    league:  League.find_by_key!('america'),
                    season:  Season.find_by_key!('2011'))


##############
# 12 Teams

copa.add_teams_from_ary!([
 'arg',   # Argentien
 'col',   # Kolumbien
 'uru',   # Uruguay
 'bra',   # Brasilien
 'mex',   # Mexiko
 'ecu',   # Ecuador
 'chi',   # Chile
 'par',   # Paraguay
 'per',   # Peru
 'ven',   # Venezuela
 'bol',   # Bolvien
 'crc'    # Costa Rica
 ])


##################
#### Groups

copaa = Group.create!( event: copa, pos: 1, title: 'Gruppe A' )
copab = Group.create!( event: copa, pos: 2, title: 'Gruppe B' )
copac = Group.create!( event: copa, pos: 3, title: 'Gruppe C' )

copaa.add_teams_from_ary!( ['arg', 'col', 'bol', 'crc' ] )
copab.add_teams_from_ary!( ['bra', 'par', 'ven', 'ecu' ] )
copac.add_teams_from_ary!( ['uru', 'chi', 'per', 'mex' ] )


Prop.create!( key: 'db.america.2011.version', value: '1' )

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sportdb-0.8.1 db/america/2011.rb
sportdb-0.8.0 db/america/2011.rb