sportdb 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/db/countries.rb ADDED
@@ -0,0 +1,70 @@
1
+ # encoding: utf-8
2
+
3
+ ## NB: for keys use internet domain/iso two letter code
4
+ #
5
+ # more info about iso country codes:
6
+ # -> http://en.wikipedia.org/wiki/ISO_3166-1
7
+ # two letter codes -> http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
8
+ # three letter codes -> http://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
9
+ #
10
+ # for three letter codes use fifa code or iso code
11
+ # - fifa three letter country codes
12
+ # -> http://en.wikipedia.org/wiki/List_of_FIFA_country_codes
13
+ # -> differences (fifa,ioc,iso) -> http://en.wikipedia.org/wiki/Comparison_of_IOC,_FIFA,_and_ISO_3166_country_codes
14
+
15
+
16
+ countries = [
17
+
18
+ ####################
19
+ ### europe
20
+
21
+ ## [ 'ad', 'Andorra', 'AND' ],
22
+ ## [ 'al', 'Albanien', 'ALB' ],
23
+ ## [ 'am', 'Armenien', 'ARM' ],
24
+ [ 'at', 'Österreich', 'AUT' ],
25
+ [ 'be', 'Belgien', 'BEL' ],
26
+ ## [ 'bg', 'Bulgarien', 'BUL' ], # NB: ISO (BGR) <> FIFA (BUL)
27
+ [ 'by', 'Weißrussland', 'BLR' ],
28
+ [ 'ch', 'Schweiz', 'SUI' ], # NB: ISO (CHE) <> FIFA (SUI)
29
+ ## [ 'cy', 'Zypern', 'CYP' ],
30
+ [ 'cz', 'Tschechien', 'CZE' ],
31
+ [ 'de', 'Deutschland', 'GER' ], # NB: ISO (DEU) <> FIFA (GER)
32
+ [ 'dk', 'Dänemark', 'DEN' ], # NB: ISO (DNK) <> FIFA (DEN)
33
+ [ 'en', 'England', 'ENG' ], # NB: FIFA (ENG); not a valid iso country n internet domain / it's uk - what to use - anything better?
34
+ [ 'es', 'Spanien', 'ESP' ],
35
+ [ 'fi', 'Finnland', 'FIN' ],
36
+ [ 'fo', 'Färöer', 'FRO' ],
37
+ [ 'fr', 'Frankreich', 'FRA' ],
38
+ [ 'ge', 'Georgien', 'GEO' ],
39
+ [ 'gr', 'Griechenland', 'GRE' ], # NB: ISO (GRC) <> FIFA (GRE)
40
+ [ 'hr', 'Kroatien', 'CRO' ], # NB: ISO (HRV) <> FIFA (CRO); local name: Hrvatska
41
+ ## [ 'hu', 'Ungarn', 'HUN' ],
42
+ [ 'ie', 'Irland', 'IRL' ],
43
+ [ 'it', 'Italien', 'ITA' ],
44
+ [ 'kz', 'Kasachstan', 'KAZ' ],
45
+ [ 'mt', 'Malta', 'MLT' ],
46
+ [ 'nl', 'Niederlande', 'NED' ], # NB: ISO (NLD) <> FIFA (NED)
47
+ [ 'pl', 'Polen', 'POL' ],
48
+ [ 'pt', 'Portugal', 'POR' ], # NB: ISO (PRT) <> FIFA (POR)
49
+ [ 'ro', 'Rumänien', 'ROU' ],
50
+ [ 'ru', 'Russland', 'RUS' ],
51
+ [ 'sc', 'Schottland', 'SCO' ], # NB: FIFA (SCO); not a valid iso country/internet domain - it's uk - what to use - anything better?
52
+ [ 'se', 'Schweden', 'SWE' ],
53
+ [ 'tr', 'Türkei', 'TUR' ],
54
+ [ 'ua', 'Ukraine', 'UKR' ],
55
+
56
+ #####################
57
+ #### north/central/south america & caribbean islands
58
+
59
+ ## [ 'ar', 'Argentinien', 'ARG' ],
60
+ ## [ 'br', 'Brasilien', 'BRA' ],
61
+ [ 'ca', 'Kanada', 'CAN' ],
62
+ [ 'mx', 'Mexiko', 'MEX' ],
63
+ [ 'us', 'United States', 'USA' ]
64
+ ]
65
+
66
+
67
+ Country.create_from_ary!( countries )
68
+
69
+
70
+ Prop.create!( key: 'db.countries.version', value: '1' )
@@ -0,0 +1,175 @@
1
+ # encoding: utf-8
2
+
3
+ # note: timezone for games (play_at) is *always* CET (central european time)
4
+
5
+ ######################################
6
+ ## Deutsche Bundesliga 2012/13
7
+ ##
8
+ ## more info => http://bundesliga.de
9
+
10
+
11
+ bl = Event.create!( key: 'de.2012/13',
12
+ title: 'Deutsche Bundesliga 2012/13',
13
+ start_at: Time.cet('2012-07-21 00:00') )
14
+
15
+
16
+ bayern = Team.find_by_key!( 'bayern' )
17
+ frankfurt = Team.find_by_key!( 'frankfurt' )
18
+ schalke = Team.find_by_key!( 'schalke' )
19
+ dortmund = Team.find_by_key!( 'dortmund' )
20
+ hannover = Team.find_by_key!( 'hannover' )
21
+ leverkusen = Team.find_by_key!( 'leverkusen' )
22
+ duesseldorf = Team.find_by_key!( 'duesseldorf' )
23
+ hsv = Team.find_by_key!( 'hsv' )
24
+ mainz = Team.find_by_key!( 'mainz' )
25
+ mgladbach = Team.find_by_key!( 'mgladbach' )
26
+ freiburg = Team.find_by_key!( 'freiburg' )
27
+ bremen = Team.find_by_key!( 'bremen' )
28
+ hoffenheim = Team.find_by_key!( 'hoffenheim' )
29
+ nuernberg = Team.find_by_key!( 'nuernberg' )
30
+ stuttgart = Team.find_by_key!( 'stuttgart' )
31
+ augsburg = Team.find_by_key!( 'augsburg' )
32
+ wolfsburg = Team.find_by_key!( 'wolfsburg' )
33
+ fuerth = Team.find_by_key!( 'fuerth' )
34
+
35
+
36
+
37
+ bl.teams << bayern
38
+ bl.teams << frankfurt
39
+ bl.teams << schalke
40
+ bl.teams << dortmund
41
+ bl.teams << hannover
42
+ bl.teams << leverkusen
43
+ bl.teams << duesseldorf
44
+ bl.teams << hsv
45
+ bl.teams << mainz
46
+ bl.teams << mgladbach
47
+ bl.teams << freiburg
48
+ bl.teams << bremen
49
+ bl.teams << hoffenheim
50
+ bl.teams << nuernberg
51
+ bl.teams << stuttgart
52
+ bl.teams << augsburg
53
+ bl.teams << wolfsburg
54
+ bl.teams << fuerth
55
+
56
+
57
+ bl01 = Round.create!( event: bl, pos: 1, title: '1. Runde', start_at: Time.cet('2012-08-24'), title2: 'Fr,Sa,So 24.,25.,26. Aug 2012' )
58
+ bl02 = Round.create!( event: bl, pos: 2, title: '2. Runde', start_at: Time.cet('2012-08-31'), title2: 'Fr,Sa,So 31. Aug, 1.+2. Sep 2012' )
59
+ bl03 = Round.create!( event: bl, pos: 3, title: '3. Runde', start_at: Time.cet('2012-09-14'), title2: 'Fr,Sa,So 14.,15.,16. Sep 2012' )
60
+ bl04 = Round.create!( event: bl, pos: 4, title: '4. Runde', start_at: Time.cet('2012-09-21'), title2: 'Fr,Sa,So 21.,22.,23. Sep 2012' )
61
+
62
+
63
+
64
+ bl07 = Round.create!( event: bl, pos: 7, title: '7. Runde', start_at: Time.cet('2012-10-05'), title2: 'Fr,Sa,So 5.,6.,7. Okt 2012 ??' )
65
+ bl08 = Round.create!( event: bl, pos: 8, title: '8. Runde', start_at: Time.cet('2012-10-19'), title2: 'Fr,Sa,So 19.+21. Okt 2012 ??' )
66
+
67
+
68
+ ## 24.08-26.08
69
+ games_bl01 = [
70
+ [ dortmund, [2,1], bremen, Time.cet('2012-08-24 20:30') ],
71
+ [ mgladbach, [2,1], hoffenheim, Time.cet('2012-08-25 15:30') ],
72
+ [ freiburg, [1,1], mainz, Time.cet('2012-08-25 15:30') ],
73
+ [ augsburg, [0,2], duesseldorf, Time.cet('2012-08-25 15:30') ],
74
+ [ hsv, [0,1], nuernberg, Time.cet('2012-08-25 15:30') ],
75
+ [ fuerth, [0,3], bayern, Time.cet('2012-08-25 15:30') ],
76
+ [ frankfurt, [2,1], leverkusen, Time.cet('2012-08-25 18:30') ],
77
+ [ stuttgart, [0,1], wolfsburg, Time.cet('2012-08-25 20:45') ],
78
+ [ hannover, [2,2], schalke, Time.cet('2012-08-26 17:30') ]
79
+ ]
80
+
81
+ ## 31.08-02.09
82
+ games_bl02 = [
83
+ [ mainz, [0,1], fuerth, Time.cet('2012-08-31 20:30') ],
84
+ [ schalke, [3,1], augsburg, Time.cet('2012-09-01 15:30') ],
85
+ [ leverkusen, [2,0], freiburg, Time.cet('2012-09-01 15:30') ],
86
+ [ bremen, [2,0], hsv, Time.cet('2012-09-01 15:30') ],
87
+ [ nuernberg, [1,1], dortmund, Time.cet('2012-09-01 15:30') ],
88
+ [ hoffenheim, [0,4], frankfurt, Time.cet('2012-09-01 15:30') ],
89
+ [ duesseldorf, [0,0], mgladbach, Time.cet('2012-09-01 18:30') ],
90
+ [ wolfsburg, [0,4], hannover, Time.cet('2012-09-02 15:30') ],
91
+ [ bayern, [6,1], stuttgart, Time.cet('2012-09-02 17:30') ]
92
+ ]
93
+
94
+ ## 14.09-16.09
95
+ games_bl03 = [
96
+ [ augsburg, [0,0], wolfsburg, Time.cet('2012-09-14 20:30') ],
97
+ [ dortmund, [3,0], leverkusen, Time.cet('2012-09-15 15:30') ],
98
+ [ bayern, [3,1], mainz, Time.cet('2012-09-15 15:30') ],
99
+ [ mgladbach, [2,3], nuernberg, Time.cet('2012-09-15 15:30') ],
100
+ [ stuttgart, [0,0], duesseldorf, Time.cet('2012-09-15 15:30') ],
101
+ [ hannover, [3,2], bremen, Time.cet('2012-09-15 15:30') ],
102
+ [ fuerth, [0,2], schalke, Time.cet('2012-09-15 18:30') ],
103
+ [ freiburg, [5,3], hoffenheim, Time.cet('2012-09-16 15:30') ],
104
+ [ frankfurt, [3,2], hsv, Time.cet('2012-09-16 17:30') ]
105
+ ]
106
+
107
+ # 21.09-23.09
108
+ games_bl04 = [
109
+ [ nuernberg, [1,2], frankfurt, Time.cet('2012-09-21 20:30') ],
110
+ [ schalke, [0,2], bayern, Time.cet('2012-09-22 15:30') ],
111
+ [ wolfsburg, [1,1], fuerth, Time.cet('2012-09-22 15:30') ],
112
+ [ mainz, [2,0], augsburg, Time.cet('2012-09-22 15:30') ],
113
+ [ hsv, [3,2], dortmund, Time.cet('2012-09-22 15:30') ],
114
+ [ duesseldorf, [0,0], freiburg, Time.cet('2012-09-22 15:30') ],
115
+ [ leverkusen, [1,1], mgladbach, Time.cet('2012-09-23 15:30') ],
116
+ [ bremen, [2,2], stuttgart, Time.cet('2012-09-23 17:30') ],
117
+ [ hoffenheim, [3,1], hannover, Time.cet('2012-09-23 17:30') ]
118
+ ]
119
+
120
+
121
+
122
+
123
+ ## todo: fix game dates
124
+
125
+
126
+
127
+ games_bl07 = [
128
+ [ augsburg, [3,1], bremen, Time.cet('2012-10-06 00:00') ],
129
+ [ bayern, [2,0], hoffenheim, Time.cet('2012-10-06 00:00') ],
130
+ [ schalke, [3,0], wolfsburg, Time.cet('2012-10-06 00:00') ],
131
+ [ freiburg, [3,0], nuernberg, Time.cet('2012-10-06 00:00') ],
132
+ [ mainz, [1,0], duesseldorf, Time.cet('2012-10-06 00:00') ],
133
+ [ fuerth, [0,1], hsv, Time.cet('2012-10-06 00:00') ],
134
+ [ mgladbach, [2,0], frankfurt, Time.cet('2012-10-06 00:00') ],
135
+ [ stuttgart, [2,2], leverkusen, Time.cet('2012-10-06 00:00') ],
136
+ [ hannover, [1,1], dortmund, Time.cet('2012-10-06 00:00') ]
137
+ ]
138
+
139
+ games_bl08 = [
140
+ [ hoffenheim, [], fuerth, Time.cet('2012-10-19 00:00') ],
141
+ [ dortmund, [], schalke, Time.cet('2012-10-19 00:00') ],
142
+ [ leverkusen, [], mainz, Time.cet('2012-10-19 00:00') ],
143
+ [ wolfsburg, [], freiburg, Time.cet('2012-10-19 00:00') ],
144
+ [ frankfurt, [], hannover, Time.cet('2012-10-19 00:00') ],
145
+ [ duesseldorf, [], bayern, Time.cet('2012-10-19 00:00') ],
146
+ [ bremen, [], mgladbach, Time.cet('2012-10-19 00:00') ],
147
+ [ nuernberg, [], augsburg, Time.cet('2012-10-19 00:00') ],
148
+ [ hsv, [], stuttgart, Time.cet('2012-10-19 00:00') ]
149
+ ]
150
+
151
+
152
+ =begin
153
+ games_bl08 = [
154
+ [ , [], , Time.cet('') ],
155
+ [ , [], , Time.cet('') ],
156
+ [ , [], , Time.cet('') ],
157
+ [ , [], , Time.cet('') ],
158
+ [ , [], , Time.cet('') ],
159
+ [ , [], , Time.cet('') ],
160
+ [ , [], , Time.cet('') ],
161
+ [ , [], , Time.cet('') ],
162
+ [ , [], , Time.cet('') ]
163
+ ]
164
+ =end
165
+
166
+ Game.create_from_ary!( games_bl01, bl01 )
167
+ Game.create_from_ary!( games_bl02, bl02 )
168
+ Game.create_from_ary!( games_bl03, bl03 )
169
+ Game.create_from_ary!( games_bl04, bl04 )
170
+
171
+
172
+ Game.create_from_ary!( games_bl07, bl07 )
173
+ Game.create_from_ary!( games_bl08, bl08 )
174
+
175
+ Prop.create!( key: 'db.de.bl.2012/13.version', value: '1' )
data/db/de/teams.rb ADDED
@@ -0,0 +1,36 @@
1
+ # encoding: utf-8
2
+
3
+ ## fix/todo:
4
+ ## bayern, schalke, etc. already defined in cl
5
+ ## change create to create_or_update or similar (check for name convention in Rails?)
6
+
7
+
8
+ ## nb: three letter codes (tags) taken from official bundesliga.de site
9
+
10
+ teams = [
11
+ [ 'bayern', 'FC Bayern München', 'FCB' ],
12
+ [ 'frankfurt', 'Eintracht Frankfurt', 'FFM' ],
13
+ [ 'schalke', 'FC Schalke 04', 'S04' ],
14
+ [ 'dortmund', 'Borussia Dortmund', 'BVB' ],
15
+ [ 'hannover', 'Hannover 96', 'H96' ],
16
+ [ 'leverkusen', 'Bayer 04 Leverkusen', 'B04' ],
17
+ [ 'duesseldorf', 'Fortuna Düsseldorf', 'F95' ],
18
+ [ 'hsv', 'Hamburger SV', 'HSV' ],
19
+ [ 'mainz', '1. FSV Mainz 05', 'M05' ],
20
+ [ 'mgladbach', "Borussia M'gladbach", 'BMG' ],
21
+ [ 'freiburg', 'SC Freiburg', 'SCF' ],
22
+ [ 'bremen', 'Werder Bremen', 'BRE' ],
23
+ [ 'hoffenheim', '1899 Hoffenheim', 'HOF' ],
24
+ [ 'nuernberg', '1 FC Nürnberg', 'FCN' ],
25
+ [ 'stuttgart', 'VfB Stuttgart', 'VFB' ],
26
+ [ 'augsburg', 'FC Augsburg', 'FCA' ],
27
+ [ 'wolfsburg', 'VfL Wolfsburg', 'WOB' ],
28
+ [ 'fuerth', 'Greuther Fürth', 'SGF' ]
29
+ ]
30
+
31
+ de = Country.find_by_key!( 'de' )
32
+
33
+ Team.create_from_ary!( teams, club: true, country: de )
34
+
35
+
36
+ Prop.create!( key: 'db.de.teams.version', value: '1' )
@@ -0,0 +1,9 @@
1
+ # encoding: utf-8
2
+
3
+ ###
4
+ ## Premier League
5
+ # more info -> http://premierleague.com (official site)
6
+ # http://en.wikipedia.org/wiki/Premier_League
7
+
8
+
9
+
data/db/en/teams.rb ADDED
@@ -0,0 +1,40 @@
1
+ # encoding: utf-8
2
+
3
+ ## fix/todo:
4
+ ## chelsea, mancity, etc. already defined in cl
5
+ ## change create to create_or_update or similar (check for name convention in Rails?)
6
+
7
+ ## change manunited to manutd ??
8
+
9
+
10
+ ## nb: three letter codes (tags) taken from official premierleague.com site
11
+
12
+ teams = [
13
+ [ 'chelsea', 'Chelsea', 'CHE' ],
14
+ [ 'manunited', 'Manchester United', 'MUN' ],
15
+ [ 'mancity', 'Manchester City', 'MCI' ],
16
+ [ 'everton', 'Everton', 'EVE' ],
17
+ [ 'tottenham', 'Tottenham Hotspur', 'TOT' ],
18
+ [ 'westbrom', 'West Bromwich Albion', 'WBA' ],
19
+ [ 'arsenal', 'Arsenal', 'ARS' ],
20
+ [ 'westham', 'West Ham United', 'WHU' ],
21
+ [ 'fulham', 'Fulham', 'FUL' ],
22
+ [ 'newcastle', 'Newcastle United', 'NEW' ],
23
+ [ 'swansea', 'Swansea City', 'SWA' ],
24
+ [ 'stoke', 'Stoke City', 'STK' ],
25
+ [ 'sunderland', 'Sunderland', 'SUN' ],
26
+ [ 'liverpool', 'Liverpool', 'LIV' ],
27
+ [ 'wigan', 'Wigan Athletic', 'WIG' ],
28
+ [ 'astonvilla', 'Aston Villa', 'AVL' ],
29
+ [ 'southampton', 'Southampton', 'SOU' ],
30
+ [ 'reading', 'Reading', 'RDG' ],
31
+ [ 'norwich', 'Norwich City', 'NOR' ],
32
+ [ 'qpr', 'Queens Park Rangers', 'QPR' ]]
33
+
34
+
35
+ en = Country.find_by_key!( 'en' )
36
+
37
+ Team.create_from_ary!( teams, club: true, country: en )
38
+
39
+
40
+ Prop.create!( key: 'db.en.teams.version', value: '1' )
data/db/euro/2012.rb CHANGED
@@ -9,9 +9,9 @@
9
9
  # or http://de.wikipedia.org/wiki/Fu%C3%9Fball-Europameisterschaft_2012
10
10
 
11
11
 
12
- euro = Event.create!( :key => 'euro',
13
- :title => 'Euro 2012',
14
- :start_at => Time.cet( '2012-06-07 17:00' ))
12
+ euro = Event.create!( key: 'euro',
13
+ title: 'Euro 2012',
14
+ start_at: Time.cet( '2012-06-07 17:00' ))
15
15
 
16
16
  pol = Team.find_by_key!( 'pol' )
17
17
  gre = Team.find_by_key!( 'gre' )
@@ -53,10 +53,10 @@ euro.teams << eng
53
53
 
54
54
 
55
55
 
56
- euroa = Group.create!( :event => euro, :pos => 1, :title => 'Gruppe A' )
57
- eurob = Group.create!( :event => euro, :pos => 2, :title => 'Gruppe B' )
58
- euroc = Group.create!( :event => euro, :pos => 3, :title => 'Gruppe C' )
59
- eurod = Group.create!( :event => euro, :pos => 4, :title => 'Gruppe D' )
56
+ euroa = Group.create!( event: euro, pos: 1, title: 'Gruppe A' )
57
+ eurob = Group.create!( event: euro, pos: 2, title: 'Gruppe B' )
58
+ euroc = Group.create!( event: euro, pos: 3, title: 'Gruppe C' )
59
+ eurod = Group.create!( event: euro, pos: 4, title: 'Gruppe D' )
60
60
 
61
61
  #################################
62
62
  # Gruppe A
@@ -93,9 +93,9 @@ eurod.teams << fra
93
93
  eurod.teams << eng
94
94
 
95
95
 
96
- euro_round1 = Round.create!( :event => euro, :pos => 1, :title => 'Vorrunde 1. Spieltag', :title2 => '8.-11. Juni' )
97
- euro_round2 = Round.create!( :event => euro, :pos => 2, :title => 'Vorrunde 2. Spieltag', :title2 => '12.-15. Juni' )
98
- euro_round3 = Round.create!( :event => euro, :pos => 3, :title => 'Vorrunde 3. Spieltag', :title2 => '16.-19. Juni' )
96
+ euro_round1 = Round.create!( event: euro, pos: 1, title: 'Vorrunde 1. Spieltag', start_at: Time.cet( '2012-06-08' ), title2: '8.-11. Juni' )
97
+ euro_round2 = Round.create!( event: euro, pos: 2, title: 'Vorrunde 2. Spieltag', start_at: Time.cet( '2012-06-12' ), title2: '12.-15. Juni' )
98
+ euro_round3 = Round.create!( event: euro, pos: 3, title: 'Vorrunde 3. Spieltag', start_at: Time.cet( '2012-06-16' ), title2: '16.-19. Juni' )
99
99
 
100
100
 
101
101
 
@@ -138,9 +138,9 @@ Game.create_from_ary!( games_euro_round3, euro_round3 )
138
138
 
139
139
 
140
140
 
141
- euro8 = Round.create!( :event => euro, :pos => 4, :title => 'Viertelfinale' )
142
- euro4 = Round.create!( :event => euro, :pos => 5, :title => 'Halbfinale' )
143
- euro1 = Round.create!( :event => euro, :pos => 6, :title => 'Finale' )
141
+ euro8 = Round.create!( event: euro, pos: 4, title: 'Viertelfinale', start_at: Time.cet( '2012-06-21' ) )
142
+ euro4 = Round.create!( event: euro, pos: 5, title: 'Halbfinale', start_at: Time.cet( '2012-06-27' ) )
143
+ euro1 = Round.create!( event: euro, pos: 6, title: 'Finale', start_at: Time.cet( '2012-07-01' ) )
144
144
 
145
145
 
146
146
  games_euro8 = [
@@ -162,4 +162,4 @@ Game.create_knockouts_from_ary!( games_euro4, euro4 )
162
162
  Game.create_knockouts_from_ary!( games_euro1, euro1 )
163
163
 
164
164
 
165
- Prop.create!( :key => 'db.euro.2012.version', :value => '1' )
165
+ Prop.create!( key: 'db.euro.2012.version', value: '1' )
data/db/euro/teams.rb CHANGED
@@ -1,30 +1,60 @@
1
1
  # encoding: utf-8
2
2
 
3
+
4
+ pl = Country.find_by_key!( 'pl' )
5
+ gr = Country.find_by_key!( 'gr' )
6
+ ru = Country.find_by_key!( 'ru' )
7
+ cz = Country.find_by_key!( 'cz' )
8
+ nl = Country.find_by_key!( 'nl' )
9
+ dk = Country.find_by_key!( 'dk' )
10
+ de = Country.find_by_key!( 'de' )
11
+ pt = Country.find_by_key!( 'pt' )
12
+ es = Country.find_by_key!( 'es' )
13
+ it = Country.find_by_key!( 'it' )
14
+ ie = Country.find_by_key!( 'ie' )
15
+ hr = Country.find_by_key!( 'hr' )
16
+ ua = Country.find_by_key!( 'ua' )
17
+ se = Country.find_by_key!( 'se' )
18
+ fr = Country.find_by_key!( 'fr' )
19
+ en = Country.find_by_key!( 'en' )
20
+ fo = Country.find_by_key!( 'fo' )
21
+ kz = Country.find_by_key!( 'kz' )
22
+ at = Country.find_by_key!( 'at' )
23
+ by = Country.find_by_key!( 'by' )
24
+ fi = Country.find_by_key!( 'fi' )
25
+ ge = Country.find_by_key!( 'ge' )
26
+
27
+
3
28
  teams = [
4
- [ 'pol', 'Polen', 'POL' ],
5
- [ 'gre', 'Griechenland', 'GRE' ],
6
- [ 'rus', 'Russland', 'RUS' ],
7
- [ 'cze', 'Tschechien', 'CZE' ],
8
- [ 'ned', 'Niederlande', 'NED' ],
9
- [ 'den', 'Dänemark', 'DEN' ],
10
- [ 'ger', 'Deutschland', 'GER' ],
11
- [ 'por', 'Portugal', 'POR' ],
12
- [ 'esp', 'Spanien', 'ESP' ],
13
- [ 'ita', 'Italien', 'ITA' ],
14
- [ 'irl', 'Irland', 'IRL' ],
15
- [ 'cro', 'Kroatien', 'CRO' ],
16
- [ 'ukr', 'Ukraine', 'UKR' ],
17
- [ 'swe', 'Schweden', 'SWE' ],
18
- [ 'fra', 'Frankreich', 'FRA' ],
19
- [ 'eng', 'England', 'ENG' ],
20
- [ 'fro', 'Färöer', 'FRO' ],
21
- [ 'kaz', 'Kasachstan', 'KAZ' ],
22
- [ 'aut', 'Österreich', 'AUT' ]
23
- ]
29
+ [ 'pol', 'Polen', 'POL', pl ],
30
+ [ 'gre', 'Griechenland', 'GRE', gr ],
31
+ [ 'rus', 'Russland', 'RUS', ru ],
32
+ [ 'cze', 'Tschechien', 'CZE', cz ],
33
+ [ 'ned', 'Niederlande', 'NED', nl ],
34
+ [ 'den', 'Dänemark', 'DEN', dk ],
35
+ [ 'ger', 'Deutschland', 'GER', de ],
36
+ [ 'por', 'Portugal', 'POR', pt ],
37
+ [ 'esp', 'Spanien', 'ESP', es ],
38
+ [ 'ita', 'Italien', 'ITA', it ],
39
+ [ 'irl', 'Irland', 'IRL', ie ],
40
+ [ 'cro', 'Kroatien', 'CRO', hr ],
41
+ [ 'ukr', 'Ukraine', 'UKR', ua ],
42
+ [ 'swe', 'Schweden', 'SWE', se ],
43
+ [ 'fra', 'Frankreich', 'FRA', fr ],
44
+ [ 'eng', 'England', 'ENG', en ],
45
+
46
+ ## some more teams for wm quali
24
47
 
48
+ [ 'fro', 'Färöer', 'FRO', fo ],
49
+ [ 'kaz', 'Kasachstan', 'KAZ', kz ],
50
+ [ 'aut', 'Österreich', 'AUT', at ],
51
+ [ 'blr', 'Weißrussland', 'BLR', by ],
52
+ [ 'fin', 'Finnland', 'FIN', fi ],
53
+ [ 'geo', 'Georgien', 'GEO', ge ]
54
+ ]
25
55
 
26
56
 
27
- Team.create_from_ary!( teams )
57
+ Team.create_from_ary!( teams, national: true )
28
58
 
29
59
 
30
- Prop.create!( :key => 'db.euro.teams.version', :value => '1' )
60
+ Prop.create!( key: 'db.euro.teams.version', value: '1' )