Sha256: f88053e121f11ddfceb99e85cab96ccd7cfc1677f387d61d183521662d86f04e

Contents?: true

Size: 1.2 KB

Versions: 2

Compression:

Stored size: 1.2 KB

Contents

# encoding: utf-8

########################
## africa
  
dz = Country.find_by_key!( 'dz' )
ci = Country.find_by_key!( 'ci' )
gh = Country.find_by_key!( 'gh' )
cm = Country.find_by_key!( 'cm' )
ng = Country.find_by_key!( 'ng' )
za = Country.find_by_key!( 'za' )

teams_africa = [
  [ 'alg', 'Algerien',       'ALG', dz ],
  [ 'civ', 'Elfenbeinküste|Elfenbeinkueste', 'CIV', ci ],
  [ 'gha', 'Ghana',          'GHA', gh ],
  [ 'cmr', 'Kamerun',        'CMR', cm ],
  [ 'nga', 'Nigeria',        'NGA', ng ],
  [ 'rsa', 'Südafrika|Suedafrika',      'RSA', za ]
]


#############################
## asia w/ australia

au  = Country.find_by_key!( 'au' )
jp  = Country.find_by_key!( 'jp' )
kp  = Country.find_by_key!( 'kp' )
kr  = Country.find_by_key!( 'kr' )

teams_asia = [
  [ 'aus', 'Australien', 'AUS', au ],
  [ 'jpn', 'Japan',      'JPN', jp ],
  [ 'prk', 'Nordkorea',  'PRK', kp ],
  [ 'kor', 'Südkorea|Suedkorea', 'KOR', kr ]
]

###############################
## oceania
  
nz = Country.find_by_key!( 'nz' )

teams_oceania = [
  [ 'nzl', 'Neuseeland', 'NZL', nz ]
]

teams = teams_africa + teams_asia + teams_oceania

Team.create_from_ary!( teams, national: true )


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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sportdb-0.8.1 db/world/teams.rb
sportdb-0.8.0 db/world/teams.rb