Sha256: 970e0abc8b130277043a80db9871c5ab3dec0a35c61d9ddf26d23063ee13e3a3

Contents?: true

Size: 1.55 KB

Versions: 2

Compression:

Stored size: 1.55 KB

Contents

# encoding: utf-8

##############
## south america

ar = Country.find_by_key!( 'ar' )
br = Country.find_by_key!( 'br' )
cl = Country.find_by_key!( 'cl' )
py = Country.find_by_key!( 'py' )
uy = Country.find_by_key!( 'uy' )
co = Country.find_by_key!( 'co' )
ec = Country.find_by_key!( 'ec' )
pe = Country.find_by_key!( 'pe' )
ve = Country.find_by_key!( 've' )
bo = Country.find_by_key!( 'bo' )

teams_america1 = [
  [ 'arg', 'Argentinien',   'ARG', ar ],
  [ 'bra', 'Brasilien',     'BRA', br ],
  [ 'chi', 'Chile',         'CHI', cl ],
  [ 'par', 'Paraguay',      'PAR', py ],
  [ 'uru', 'Uruguay',       'URU', uy ],
  [ 'col', 'Kolumbien',     'COL', co ],
  [ 'ecu', 'Ecuador',       'ECU', ec ],
  [ 'per', 'Peru',          'PER', pe ],
  [ 'ven', 'Venezuela',     'VEN', ve ],
  [ 'bol', 'Bolivien',      'BOL', bo ]
]


#####################
#### north/central america & caribbean islands

mx = Country.find_by_key!( 'mx' )
us = Country.find_by_key!( 'us' )
hn = Country.find_by_key!( 'hn' )
cr = Country.find_by_key!( 'cr' )
sv = Country.find_by_key!( 'sv' )
gy = Country.find_by_key!( 'gy' )

teams_america2 = [
  [ 'mex', 'Mexiko',        'MEX', mx ],
  [ 'usa', 'Vereinigte Staaten|United States', 'USA', us ],
  [ 'hon', 'Honduras',      'HON', hn ],
  [ 'crc', 'Costa Rica',    'CRC', cr ],
  [ 'slv', 'El Salvador',   'SLV', sv ],
  [ 'guy', 'Guyana',        'GUY', gy ],
]


teams = teams_america1 + teams_america2

Team.create_from_ary!( teams, national: true )

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

Version data entries

2 entries across 2 versions & 1 rubygems

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