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