sportdb 0.4.5 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/db/seasons.rb ADDED
@@ -0,0 +1,21 @@
1
+ # encoding: utf-8
2
+
3
+ ## use period for season? why? why not?
4
+ # - semantic hairsplitting? make it an alias? why? why not? who cares?
5
+
6
+ Season.create!( key: '2012/13', title: '2012/13' )
7
+ Season.create!( key: '2011/12', title: '2011/12' )
8
+ Season.create!( key: '2010/11', title: '2010/11' )
9
+ Season.create!( key: '2009/10', title: '2009/10' )
10
+ Season.create!( key: '2008/09', title: '2008/09' )
11
+ Season.create!( key: '2007/08', title: '2007/08' )
12
+
13
+
14
+ Season.create!( key: '2012', title: '2012' )
15
+ Season.create!( key: '2011', title: '2011' )
16
+ Season.create!( key: '2010', title: '2010' )
17
+ Season.create!( key: '2009', title: '2009' )
18
+ Season.create!( key: '2008', title: '2008' )
19
+
20
+
21
+ Prop.create!( key: 'db.seasons.version', value: '1' )
data/db/world/2010.rb ADDED
@@ -0,0 +1,189 @@
1
+ # encoding: utf-8
2
+
3
+
4
+ ## fix: change time zone to ??
5
+ ## - All times listed are South African Standard Time (UTC+02) ???
6
+
7
+ ##################################
8
+ ## World Cup 2010 South Africa
9
+ #
10
+ # more info -> http://de.wikipedia.org/wiki/Fußball-Weltmeisterschaft_2010
11
+
12
+ ### 32 teams
13
+ ## 64 games
14
+ ## 31 days (11 June - 11 July)
15
+
16
+ wm = Event.create!( key: 'wm.2010',
17
+ title: 'World Cup 2010',
18
+ start_at: Time.cet( '2010-06-11 12:00' ),
19
+ league: League.find_by_key!('wm'),
20
+ season: Season.find_by_key!('2010'))
21
+
22
+ ##############
23
+ # 13 aus Europa
24
+
25
+ wm.add_teams_from_ary!([
26
+ 'den', # Dänemark
27
+ 'ger', # Deutschland
28
+ 'eng', # England
29
+ 'fra', # Frankreich
30
+ 'gre', # Griechenland
31
+ 'ita', # Italien
32
+ 'ned', # Niederlande
33
+ 'por', # Portugal
34
+ 'esp', # Spanien
35
+ 'sui', # Schweiz
36
+ 'srb', # Serbien
37
+ 'svk', # Slowakei
38
+ 'svn' # Slowenien
39
+ ])
40
+
41
+ ####
42
+ # 5 aus Südamerika
43
+
44
+ wm.add_teams_from_ary!([
45
+ 'arg', # Argentinien
46
+ 'bra', # Brasilien
47
+ 'chi', # Chile
48
+ 'par', # Paraguay
49
+ 'uru' # Uruguay
50
+ ])
51
+
52
+
53
+ ###
54
+ # 3 Nord- und Mittelamerika
55
+
56
+ wm.add_teams_from_ary!([
57
+ 'mex', # Mexiko
58
+ 'usa', # Vereinigte Staaten
59
+ 'hon' # Honduras
60
+ ])
61
+
62
+
63
+ ####
64
+ # 6 aus Afrika
65
+
66
+ wm.add_teams_from_ary!([
67
+ 'alg', # Algerien
68
+ 'civ', # Elfenbeinküste
69
+ 'gha', # Ghana
70
+ 'cmr', # Kamerun
71
+ 'nga', # Nigeria
72
+ 'rsa' # Südafrika
73
+ ])
74
+
75
+
76
+ ##########
77
+ # 4 aus Asien (mit Australien)
78
+
79
+ wm.add_teams_from_ary!([
80
+ 'aus', # Australien
81
+ 'jpn', # Japan
82
+ 'prk', # Nordkorea
83
+ 'kor' # Südkorea
84
+ ])
85
+
86
+
87
+ ##########
88
+ # 1 aus Ozeanien
89
+
90
+ wm.add_teams_from_ary!([
91
+ 'nzl' # Neuseeland
92
+ ])
93
+
94
+
95
+
96
+ ##################
97
+ #### Groups
98
+
99
+ wma = Group.create!( event: wm, pos: 1, title: 'Gruppe A' )
100
+ wmb = Group.create!( event: wm, pos: 2, title: 'Gruppe B' )
101
+ wmc = Group.create!( event: wm, pos: 3, title: 'Gruppe C' )
102
+ wmd = Group.create!( event: wm, pos: 4, title: 'Gruppe D' )
103
+ wme = Group.create!( event: wm, pos: 5, title: 'Gruppe E' )
104
+ wmf = Group.create!( event: wm, pos: 6, title: 'Gruppe F' )
105
+ wmg = Group.create!( event: wm, pos: 7, title: 'Gruppe G' )
106
+ wmh = Group.create!( event: wm, pos: 8, title: 'Gruppe H' )
107
+
108
+ ###############
109
+ # Gruppe A
110
+ #
111
+ # Südafrika
112
+ # Mexiko
113
+ # Uruguay
114
+ # Frankreich
115
+
116
+ wma.add_teams_from_ary!( ['rsa', 'mex', 'uru', 'fra' ] )
117
+
118
+ ###############
119
+ # Gruppe B
120
+ #
121
+ # Argentinien
122
+ # Nigeria
123
+ # Südkorea
124
+ # Griechenland
125
+
126
+ wmb.add_teams_from_ary!( ['arg', 'nga', 'kor', 'gre'] )
127
+
128
+ #############
129
+ # Gruppe C
130
+ #
131
+ # England
132
+ # Vereinigte Staaten
133
+ # Algerien
134
+ # Slowenien
135
+
136
+ wmc.add_teams_from_ary!( ['eng', 'usa', 'alg', 'svn'] )
137
+
138
+ #############
139
+ # Gruppe D
140
+ #
141
+ # Deutschland
142
+ # Australien
143
+ # Serbien
144
+ # Ghana
145
+
146
+ wmd.add_teams_from_ary!( ['ger', 'aus', 'srb', 'gha' ] )
147
+
148
+ ################
149
+ # Gruppe E
150
+ #
151
+ # Niederlande
152
+ # Dänemark
153
+ # Japan
154
+ # Kamerun
155
+
156
+ wme.add_teams_from_ary!( ['ned', 'den', 'jpn', 'cmr'] )
157
+
158
+ ################3
159
+ # Gruppe F
160
+ #
161
+ # Italien
162
+ # Paraguay
163
+ # Neuseeland
164
+ # Slowakei
165
+
166
+ wmf.add_teams_from_ary!( ['ita', 'par', 'nzl', 'svk'] )
167
+
168
+ #################
169
+ # Gruppe G
170
+ #
171
+ # Brasilien
172
+ # Nordkorea
173
+ # Elfenbeinküste
174
+ # Portugal
175
+
176
+ wmg.add_teams_from_ary!( ['bra', 'prk', 'civ', 'por'] )
177
+
178
+ #################
179
+ # Gruppe H
180
+ #
181
+ # Spanien
182
+ # Schweiz
183
+ # Honduras
184
+ # Chile
185
+
186
+ wmh.add_teams_from_ary!( ['esp', 'sui', 'hon', 'chi'] )
187
+
188
+
189
+ Prop.create!( key: 'db.world.2010.version', value: '1' )
data/db/world/2010.txt ADDED
@@ -0,0 +1,208 @@
1
+ ############################
2
+ ## World Cup 2010
3
+
4
+
5
+ ####
6
+ ## todo: check why we get with umlauts:
7
+ # sportdb/reader.rb:261:in `=~': incompatible encoding regexp match (UTF-8 regexp with
8
+ # CP850 string) (Encoding::CompatibilityError)
9
+
10
+
11
+ ################
12
+ ## Gruppe A
13
+
14
+ 1. Spieltag
15
+
16
+ (1) Fr 2010-06-11 16:00 Südafrika - Mexiko 1:1
17
+ (2) Fr 2010-06-11 20:30 Uruguay - Frankreich 0:0
18
+
19
+ 6. Spieltag
20
+
21
+ (17) Mi 2010-06-16 20:30 Südafrika - Uruguay 0:3
22
+
23
+ 7. Spieltag
24
+
25
+ (18) Do 2010-06-17 20:30 Frankreich - Mexiko 0:2
26
+
27
+ 12. Spieltag
28
+
29
+ (33) Di 2010-06-22 16:00 Mexiko - Uruguay 0:1
30
+ (34) Di 2010-06-22 16:00 Frankreich - Südafrika 1:2
31
+
32
+ #################
33
+ ## Gruppe B
34
+
35
+ 2. Spieltag
36
+
37
+ (4) Sa 2010-06-12 13:30 Südkorea - Griechenland 2:0
38
+ (3) Sa 2010-06-12 16:00 Argentinien - Nigeria 1:0
39
+
40
+ 7. Spieltag
41
+
42
+ (20) Do 2010-06-17 13:30 Argentinien - Südkorea 4:1
43
+ (19) Do 2010-06-17 16:00 Griechenland - Nigeria 2:1
44
+
45
+ 12. Spieltag
46
+
47
+ (35) Di 2010-06-22 20:30 Nigeria - Südkorea 2:2
48
+ (36) Di 2010-06-22 20:30 Griechenland - Argentinien 0:2
49
+
50
+ #################
51
+ ## Gruppe C
52
+
53
+ 2. Spieltag
54
+
55
+ (5) Sa 2010-06-12 20:30 England - USA 1:1
56
+
57
+ 3. Spieltag
58
+
59
+ (6) So 2010-06-13 13:30 Algerien - Slowenien 0:1
60
+
61
+ 8. Spieltag
62
+
63
+ (22) Fr 2010-06-18 16:00 Slowenien - USA 2:2
64
+ (23) Fr 2010-06-18 20:30 England - Algerien 0:0
65
+
66
+ 13. Spieltag
67
+
68
+ (38) Mi 2010-06-23 16:00 USA - Algerien 1:0
69
+ (37) Mi 2010-06-23 16:00 Slowenien - England 0:1
70
+
71
+ ################
72
+ ## Gruppe D
73
+
74
+ 3. Spieltag
75
+
76
+ (8) So 2010-06-13 16:00 Serbien - Ghana 0:1
77
+ (7) So 2010-06-13 20:30 Deutschland - Australien 4:0
78
+
79
+ 8. Spieltag
80
+
81
+ (21) Fr 2010-06-18 13:30 Deutschland - Serbien 0:1
82
+
83
+ 9. Spieltag
84
+
85
+ (24) Sa 2010-06-19 16:00 Ghana - Australien 1:1
86
+
87
+ 13. Spieltag
88
+
89
+ (40) Mi 2010-06-23 20:30 Australien - Serbien 2:1
90
+ (39) Mi 2010-06-23 20:30 Ghana - Deutschland 0:1
91
+
92
+ ##############
93
+ ## Gruppe E
94
+
95
+ 4. Spieltag
96
+
97
+ (9) Mo 2010-06-14 13:30 Niederlande - Dänemark 2:0
98
+ (10) Mo 2010-06-14 16:00 Japan - Kamerun 1:0
99
+
100
+ 9. Spieltag
101
+
102
+ (25) Sa 2010-06-19 13:30 Niederlande - Japan 1:0
103
+ (26) Sa 2010-06-19 20:30 Kamerun - Dänemark 1:2
104
+
105
+ 14. Spieltag
106
+
107
+ (43) Do 2010-06-24 20:30 Dänemark - Japan 1:3
108
+ (44) Do 2010-06-24 20:30 Kamerun - Niederlande 1:2
109
+
110
+ ##################
111
+ ## Gruppe F
112
+
113
+ 4. Spieltag
114
+
115
+ (11) Mo 2010-06-14 20:30 Italien - Paraguay 1:1
116
+
117
+ 5. Spieltag
118
+
119
+ (12) Di 2010-06-15 13:30 Neuseeland - Slowakei 1:1
120
+
121
+ 10. Spieltag
122
+
123
+ (27) So 2010-06-20 13:30 Slowakei - Paraguay 0:2
124
+ (28) So 2010-06-20 16:00 Italien - Neuseeland 1:1
125
+
126
+ 14. Spieltag
127
+
128
+ (41) Do 2010-06-24 16:00 Slowakei - Italien 3:2
129
+ (42) Do 2010-06-24 16:00 Paraguay - Neuseeland 0:0
130
+
131
+ ########################
132
+ ## Gruppe G
133
+
134
+ 5. Spieltag
135
+
136
+ (13) Di 2010-06-15 16:00 Elfenbeinküste - Portugal 0:0
137
+ (14) Di 2010-06-15 20:30 Brasilien - Nordkorea 2:1
138
+
139
+ 10. Spieltag
140
+
141
+ (29) So 2010-06-20 20:30 Brasilien - Elfenbeinküste 3:1
142
+
143
+ 11. Spieltag
144
+
145
+ (30) Mo 2010-06-21 13:30 Portugal - Nordkorea 7:0
146
+
147
+ 15. Spieltag
148
+
149
+ (45) Fr 2010-06-25 16:00 Portugal - Brasilien 0:0
150
+ (46) Fr 2010-06-25 16:00 Nordkorea - Elfenbeinküste 0:3
151
+
152
+
153
+ #####################
154
+ ## Gruppe H
155
+
156
+ 6. Spieltag
157
+
158
+ (15) Mi 2010-06-16 13:30 Honduras - Chile 0:1
159
+ (16) Mi 2010-06-16 16:00 Spanien - Schweiz 0:1
160
+
161
+ 11. Spieltag
162
+
163
+ (31) Mo 2010-06-21 16:00 Chile - Schweiz 1:0
164
+ (32) Mo 2010-06-21 20:30 Spanien - Honduras 2:0
165
+
166
+ 15. Spieltag
167
+
168
+ (47) Fr 2010-06-25 20:30 Chile - Spanien 1:2
169
+ (48) Fr 2010-06-25 20:30 Schweiz - Honduras 0:0
170
+
171
+
172
+ ####
173
+ ## Finalrunde // Knockout stage
174
+
175
+ 16. Runde // Achtelfinale // Round of 16
176
+
177
+ (49) Sa 2010-06-26 16:00 Uruguay - Südkorea 2:1
178
+ (50) Sa 2010-06-26 20:30 Vereinigte Staaten - Ghana 1:1 1:2nV
179
+ (51) So 2010-06-27 16:00 Deutschland - England 4:1
180
+ (52) So 2010-06-27 20:30 Argentinien - Mexiko 3:1
181
+ (53) Mo 2010-06-28 16:00 Niederlande - Slowakei 2:1
182
+ (54) Mo 2010-06-28 20:30 Brasilien - Chile 3:0
183
+ (55) Di 2010-06-29 16:00 Paraguay - Japan 0:0 0:0nV 5:3iE
184
+ (56) Di 2010-06-29 20:30 Spanien - Portugal 1:0
185
+
186
+
187
+ 17. Runde // Viertelfinale // Quarter-finals
188
+
189
+ (57) Fr 2010-07-02 16:00 Niederlande - Brasilien 2:1
190
+ (58) Fr 2010-07-02 20:30 Uruguay - Ghana 1:1 1:1nV 4:2iE
191
+ (59) Sa 2010-07-03 16:00 Argentinien - Deutschland 0:4
192
+ (60) Sa 2010-07-03 20:30 Paraguay - Spanien 0:1
193
+
194
+
195
+ 18. Runde // Halbfinale // Semi-finals
196
+
197
+ (61) Di 2010-07-06 20:30 Uruguay - Niederlande 2:3
198
+ (62) Mi 2010-07-07 20:30 Deutschland - Spanien 0:1
199
+
200
+
201
+ 19. Runde // Spiel um Platz 3 // Third-place play-off
202
+
203
+ (63) Sa 2010-07-10 20:30 Uruguay - Deutschland 2:3
204
+
205
+
206
+ 20. Runde // Finale // Final
207
+
208
+ (64) So 2010-07-11 20:30 Niederlande - Spanien 0:0 0:1nV
@@ -8,6 +8,8 @@
8
8
 
9
9
  world = Event.create!( key: 'wmq',
10
10
  title: 'World Cup Quali. Europe 2012/13',
11
- start_at: Time.cet( '2012-09-07 00:00' ))
11
+ start_at: Time.cet( '2012-09-07 00:00' ),
12
+ league: League.find_by_key!('wmq'),
13
+ season: Season.find_by_key!('2012/13'))
12
14
 
13
15
  Prop.create!( key: 'db.world.quali.2012/13.version', value: '1' )
data/db/world/teams.rb ADDED
@@ -0,0 +1,84 @@
1
+ # encoding: utf-8
2
+
3
+ ##############
4
+ ## south america
5
+
6
+ ar = Country.find_by_key!( 'ar' )
7
+ br = Country.find_by_key!( 'br' )
8
+ cl = Country.find_by_key!( 'cl' )
9
+ py = Country.find_by_key!( 'py' )
10
+ uy = Country.find_by_key!( 'uy' )
11
+
12
+ teams_america1 = [
13
+ [ 'arg', 'Argentinien', 'ARG', ar ],
14
+ [ 'bra', 'Brasilien', 'BRA', br ],
15
+ [ 'chi', 'Chile', 'CHI', cl ],
16
+ [ 'par', 'Paraguay', 'PAR', py ],
17
+ [ 'uru', 'Uruguay', 'URU', uy ]
18
+ ]
19
+
20
+
21
+ #####################
22
+ #### north/central america & caribbean islands
23
+
24
+ mx = Country.find_by_key!( 'mx' )
25
+ us = Country.find_by_key!( 'us' )
26
+ hn = Country.find_by_key!( 'hn' )
27
+
28
+ teams_america2 = [
29
+ [ 'mex', 'Mexiko', 'MEX', mx ],
30
+ [ 'usa', 'Vereinigte Staaten|United States', 'USA', us ],
31
+ [ 'hon', 'Honduras', 'HON', hn ]
32
+ ]
33
+
34
+
35
+ ########################
36
+ ## africa
37
+
38
+ dz = Country.find_by_key!( 'dz' )
39
+ ci = Country.find_by_key!( 'ci' )
40
+ gh = Country.find_by_key!( 'gh' )
41
+ cm = Country.find_by_key!( 'cm' )
42
+ ng = Country.find_by_key!( 'ng' )
43
+ za = Country.find_by_key!( 'za' )
44
+
45
+ teams_africa = [
46
+ [ 'alg', 'Algerien', 'ALG', dz ],
47
+ [ 'civ', 'Elfenbeinküste|Elfenbeinkueste', 'CIV', ci ],
48
+ [ 'gha', 'Ghana', 'GHA', gh ],
49
+ [ 'cmr', 'Kamerun', 'CMR', cm ],
50
+ [ 'nga', 'Nigeria', 'NGA', ng ],
51
+ [ 'rsa', 'Südafrika|Suedafrika', 'RSA', za ]
52
+ ]
53
+
54
+
55
+ #############################
56
+ ## asia w/ australia
57
+
58
+ au = Country.find_by_key!( 'au' )
59
+ jp = Country.find_by_key!( 'jp' )
60
+ kp = Country.find_by_key!( 'kp' )
61
+ kr = Country.find_by_key!( 'kr' )
62
+
63
+ teams_asia = [
64
+ [ 'aus', 'Australien', 'AUS', au ],
65
+ [ 'jpn', 'Japan', 'JPN', jp ],
66
+ [ 'prk', 'Nordkorea', 'PRK', kp ],
67
+ [ 'kor', 'Südkorea|Suedkorea', 'KOR', kr ]
68
+ ]
69
+
70
+ ###############################
71
+ ## oceania
72
+
73
+ nz = Country.find_by_key!( 'nz' )
74
+
75
+ teams_oceania = [
76
+ [ 'nzl', 'Neuseeland', 'NZL', nz ]
77
+ ]
78
+
79
+ teams = teams_america1 + teams_america2 + teams_africa + teams_asia + teams_oceania
80
+
81
+ Team.create_from_ary!( teams, national: true )
82
+
83
+
84
+ Prop.create!( key: 'db.world.teams.version', value: '1' )
@@ -119,10 +119,12 @@ EOS
119
119
  def dump_stats
120
120
  # todo: use %5d or similar to format string
121
121
  puts "Stats:"
122
- puts " #{Event.count} events"
123
- puts " #{Team.count} teams"
122
+ puts " #{Event.count} events / #{Round.count} rounds / #{Group.count} groups"
123
+ puts " #{League.count} leagues / #{Season.count} seasons"
124
124
  puts " #{Country.count} countries"
125
+ puts " #{Team.count} teams"
125
126
  puts " #{Game.count} games"
127
+ puts " #{Badge.count} badges"
126
128
  end
127
129
 
128
130
  def dump_props
@@ -0,0 +1,12 @@
1
+ module SportDB::Models
2
+
3
+ class Badge < ActiveRecord::Base
4
+
5
+ belongs_to :team
6
+ belongs_to :league
7
+ belongs_to :season
8
+
9
+ end # class Badge
10
+
11
+
12
+ end # module SportDB::Models
@@ -1,7 +1,6 @@
1
- module SportDB
2
- module Models
1
+ module SportDB::Models
2
+
3
3
 
4
-
5
4
  class Country < ActiveRecord::Base
6
5
  self.table_name = 'countries'
7
6
 
@@ -22,5 +21,4 @@ class Country < ActiveRecord::Base
22
21
  end # class Country
23
22
 
24
23
 
25
- end # module Models
26
- end # module SportDB
24
+ end # module Models::SportDB
@@ -2,6 +2,9 @@ module SportDB::Models
2
2
 
3
3
  class Event < ActiveRecord::Base
4
4
 
5
+ belongs_to :league
6
+ belongs_to :season
7
+
5
8
  has_many :rounds, :order => 'pos' # all (fix and flex) rounds
6
9
 
7
10
  has_many :groups, :order => 'pos'
@@ -1,5 +1,4 @@
1
- module SportDB
2
- module Models
1
+ module SportDB::Models
3
2
 
4
3
 
5
4
  class EventTeam < ActiveRecord::Base
@@ -9,6 +8,5 @@ class EventTeam < ActiveRecord::Base
9
8
  belongs_to :team
10
9
  end # class EventTeam
11
10
 
12
-
13
- end # module Models
14
- end # module SportDB
11
+
12
+ end # module SportDB::Models
@@ -1,7 +1,6 @@
1
- module SportDB
2
- module Models
1
+ module SportDB::Models
2
+
3
3
 
4
-
5
4
  class Game < ActiveRecord::Base
6
5
 
7
6
  belongs_to :team1, :class_name => 'Team', :foreign_key => 'team1_id'
@@ -158,6 +157,4 @@ class Game < ActiveRecord::Base
158
157
  end # class Game
159
158
 
160
159
 
161
-
162
- end # module Models
163
- end # module SportDB
160
+ end # module SportDB::Models
@@ -1,5 +1,4 @@
1
- module SportDB
2
- module Models
1
+ module SportDB::Models
3
2
 
4
3
 
5
4
  class GroupTeam < ActiveRecord::Base
@@ -9,7 +8,6 @@ class GroupTeam < ActiveRecord::Base
9
8
  belongs_to :team
10
9
  end # class GroupTeam
11
10
 
12
-
13
- end # module Models
14
- end # module SportDB
11
+
12
+ end # module SportDB::Models
15
13
 
@@ -0,0 +1,17 @@
1
+ module SportDB::Models
2
+
3
+
4
+ class League < ActiveRecord::Base
5
+
6
+ ## leagues also used for conferences, world series, cups, etc.
7
+ #
8
+ ## league (cup/conference/series/etc.) + season (year) = event
9
+
10
+ has_many :events
11
+
12
+ ### has_many :seasons ## through events add
13
+
14
+ end # class League
15
+
16
+
17
+ end # module SportDB::Models
@@ -1,5 +1,4 @@
1
- module SportDB
2
- module Models
1
+ module SportDB::Models
3
2
 
4
3
 
5
4
  class Prop < ActiveRecord::Base
@@ -7,6 +6,5 @@ class Prop < ActiveRecord::Base
7
6
  end # class Prop
8
7
 
9
8
 
10
-
11
- end # module Models
12
- end # module SportDB
9
+
10
+ end # module SportDB::Models
@@ -1,5 +1,4 @@
1
- module SportDB
2
- module Models
1
+ module SportDB::Models
3
2
 
4
3
 
5
4
  class Round < ActiveRecord::Base
@@ -10,6 +9,5 @@ class Round < ActiveRecord::Base
10
9
  end # class Round
11
10
 
12
11
 
13
- end # module Models
14
- end # module SportDB
12
+ end # module SportDB::Models
15
13
 
@@ -0,0 +1,11 @@
1
+ module SportDB::Models
2
+
3
+
4
+ class Season < ActiveRecord::Base
5
+
6
+ has_many :events
7
+
8
+ end # class Season
9
+
10
+
11
+ end # module SportDB::Models