db/world/teams.rb in sportdb-0.7.2 vs db/world/teams.rb in sportdb-0.8.0
- old
+ new
@@ -1,45 +1,7 @@
# 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' )
-
-teams_america1 = [
- [ 'arg', 'Argentinien', 'ARG', ar ],
- [ 'bra', 'Brasilien', 'BRA', br ],
- [ 'chi', 'Chile', 'CHI', cl ],
- [ 'par', 'Paraguay', 'PAR', py ],
- [ 'uru', 'Uruguay', 'URU', uy ]
-]
-
-
-#####################
-#### 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 ],
-]
-
-
########################
## africa
dz = Country.find_by_key!( 'dz' )
ci = Country.find_by_key!( 'ci' )
@@ -80,10 +42,10 @@
teams_oceania = [
[ 'nzl', 'Neuseeland', 'NZL', nz ]
]
-teams = teams_america1 + teams_america2 + teams_africa + teams_asia + teams_oceania
+teams = teams_africa + teams_asia + teams_oceania
Team.create_from_ary!( teams, national: true )
Prop.create!( key: 'db.world.teams.version', value: '1' )