Sha256: 7fc3f391e2369549cdffdb809ee2d85e3b50e21928530fdde1aecdac9ef360a7
Contents?: true
Size: 428 Bytes
Versions: 4
Compression:
Stored size: 428 Bytes
Contents
module SportDb module Model class League < ActiveRecord::Base ## leagues also used for conferences, world series, cups, etc. # ## league (or cup/conference/series/etc.) + season (or year) = event has_many :events has_many :seasons, :through => :events belongs_to :country, :class_name => 'WorldDb::Model::Country', :foreign_key => 'country_id' end # class League end # module Model end # module SportDb
Version data entries
4 entries across 4 versions & 1 rubygems