Sha256: 83998a53d2789a2bcc38d3817bc4c30f850700575332fd911cf5eb93caf6aea4
Contents?: true
Size: 1.33 KB
Versions: 4
Compression:
Stored size: 1.33 KB
Contents
# encoding: utf-8 ## fix/todo: ## bayern, schalke, etc. already defined in cl ## change create to create_or_update or similar (check for name convention in Rails?) ## nb: three letter codes (tags) taken from official bundesliga.de site teams = [ [ 'bayern', 'FC Bayern München', 'FCB' ], [ 'frankfurt', 'Eintracht Frankfurt', 'FFM' ], [ 'schalke', 'FC Schalke 04', 'S04' ], [ 'dortmund', 'Borussia Dortmund', 'BVB' ], [ 'hannover', 'Hannover 96', 'H96' ], [ 'leverkusen', 'Bayer 04 Leverkusen', 'B04' ], [ 'duesseldorf', 'Fortuna Düsseldorf', 'F95' ], [ 'hsv', 'Hamburger SV', 'HSV' ], [ 'mainz', '1. FSV Mainz 05', 'M05' ], [ 'mgladbach', "Borussia M'gladbach", 'BMG' ], [ 'freiburg', 'SC Freiburg', 'SCF' ], [ 'bremen', 'Werder Bremen', 'BRE' ], [ 'hoffenheim', '1899 Hoffenheim', 'HOF' ], [ 'nuernberg', '1 FC Nürnberg', 'FCN' ], [ 'stuttgart', 'VfB Stuttgart', 'VFB' ], [ 'augsburg', 'FC Augsburg', 'FCA' ], [ 'wolfsburg', 'VfL Wolfsburg', 'WOB' ], [ 'fuerth', 'Greuther Fürth', 'SGF' ] ] de = Country.find_by_key!( 'de' ) Team.create_from_ary!( teams, club: true, country: de ) Prop.create!( key: 'db.de.teams.version', value: '1' )
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sportdb-0.4.0 | db/de/teams.rb |
sportdb-0.3.3 | db/de/teams.rb |
sportdb-0.3.2 | db/de/teams.rb |
sportdb-0.3.1 | db/de/teams.rb |