Sha256: 865f28b93a7a177eba4c445bd439a47c0e94bc7df3912613761aed6d3b498145
Contents?: true
Size: 1.45 KB
Versions: 4
Compression:
Stored size: 1.45 KB
Contents
# encoding: utf-8 ## fix/todo: ## chelsea, mancity, etc. already defined in cl ## change create to create_or_update or similar (check for name convention in Rails?) ## change manunited to manutd ?? ## nb: three letter codes (tags) taken from official premierleague.com site teams = [ [ 'chelsea', 'Chelsea', 'CHE' ], [ 'manunited', 'Manchester United', 'MUN' ], [ 'mancity', 'Manchester City', 'MCI' ], [ 'everton', 'Everton', 'EVE' ], [ 'tottenham', 'Tottenham Hotspur', 'TOT' ], [ 'westbrom', 'West Bromwich Albion', 'WBA' ], [ 'arsenal', 'Arsenal', 'ARS' ], [ 'westham', 'West Ham United', 'WHU' ], [ 'fulham', 'Fulham', 'FUL' ], [ 'newcastle', 'Newcastle United', 'NEW' ], [ 'swansea', 'Swansea City', 'SWA' ], [ 'stoke', 'Stoke City', 'STK' ], [ 'sunderland', 'Sunderland', 'SUN' ], [ 'liverpool', 'Liverpool', 'LIV' ], [ 'wigan', 'Wigan Athletic', 'WIG' ], [ 'astonvilla', 'Aston Villa', 'AVL' ], [ 'southampton', 'Southampton', 'SOU' ], [ 'reading', 'Reading', 'RDG' ], [ 'norwich', 'Norwich City', 'NOR' ], [ 'qpr', 'Queens Park Rangers', 'QPR' ]] en = Country.find_by_key!( 'en' ) Team.create_from_ary!( teams, club: true, country: en ) Prop.create!( key: 'db.en.teams.version', value: '1' )
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sportdb-0.4.0 | db/en/teams.rb |
sportdb-0.3.3 | db/en/teams.rb |
sportdb-0.3.2 | db/en/teams.rb |
sportdb-0.3.1 | db/en/teams.rb |