Sha256: b20115cee567b6c5705924a81f410195c95473111c9e47c063b8e4b15b730ef0
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 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 ) ## The End #################
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sportdb-0.9.0 | db/world/teams.rb |