Sha256: b87368890654f575d632a671589da74ec80f31192cd6fb9c07847994dafef832

Contents?: true

Size: 1.99 KB

Versions: 2

Compression:

Stored size: 1.99 KB

Contents

# encoding: utf-8

#############################
## national leagues & cups

at = Country.find_by_key!( 'at' )
de = Country.find_by_key!( 'de' )
en = Country.find_by_key!( 'en' )
es = Country.find_by_key!( 'es' )
it = Country.find_by_key!( 'it' )
fr = Country.find_by_key!( 'fr' )
nl = Country.find_by_key!( 'nl' )
pt = Country.find_by_key!( 'pt' )
ru = Country.find_by_key!( 'ru' )
ro = Country.find_by_key!( 'ro' )
mx = Country.find_by_key!( 'mx' )
br = Country.find_by_key!( 'br' )


leagues_club = [
 [ 'at',          'Österr. Bundesliga',     at ],
 [ 'at.cup',      'ÖFB Cup',                at ],
 [ 'de',          'Deutsche Bundesliga',    de ],
 [ 'en',          'English Premier League', en ],
 [ 'es',          'Primera División',       es ],
 [ 'it',          'Serie A',                it ],
 [ 'fr',          'Ligue 1',                fr ],
 [ 'nl',          'Eredivisie',             nl ],
 [ 'pt',          'SuperLiga',              pt ],
 [ 'ru',          'Premier Liga',           ru ],
 [ 'ro',          'Romania Liga 1',         ro ],
 [ 'mx.apertura', 'México Primera División Apertura', mx ],
 [ 'br',          'Campeonato Brasileiro Série A', br ]
]

League.create_from_ary!( leagues_club, club: true )


########################################
## international leagues w/ football clubs teams

leagues_club_intl = [
  [ 'cl',       'Champions League' ],
  [ 'el',       'Europa League' ],
  [ 'copa',     'Copa Libertadores' ],
  [ 'copa.sud', 'Copa Sudamericana' ]
]

League.create_from_ary!( leagues_club_intl, club: true )


#######################################
## internationl tournaments & cups w/ national teams

leagues_intl = [
  [ 'euro',        'Euro'      ],
  [ 'america',     'Copa América' ],
  [ 'wm',          'World Cup' ],   ## change key to world??
  [ 'wmq.euro',    'World Cup Quali Europe' ],
  [ 'wmq.america', 'World Cup Quali North/Central America and Caribbean' ]
]

League.create_from_ary!( leagues_intl, club: false )



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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sportdb-0.8.1 db/leagues.rb
sportdb-0.8.0 db/leagues.rb