Sha256: b740a5c7c5ba1c194e1a1ca97760a0993a1d477f2f93ca3f892f8482b9614d3b

Contents?: true

Size: 1.95 KB

Versions: 4

Compression:

Stored size: 1.95 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'      ],
  [ '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

4 entries across 4 versions & 1 rubygems

Version Path
sportdb-0.7.2 db/leagues.rb
sportdb-0.7.1 db/leagues.rb
sportdb-0.7.0 db/leagues.rb
sportdb-0.6.0 db/leagues.rb