Sha256: c7a4894abe945ed1f1e1c89327c786729de0950aa5ff0b098c1e3d86801448d8
Contents?: true
Size: 389 Bytes
Versions: 44
Compression:
Stored size: 389 Bytes
Contents
module SportDb module Model class Group < ActiveRecord::Base if ActiveRecord::VERSION::MAJOR == 3 has_many :games, order: 'pos' else has_many :games, -> { order('pos') } end belongs_to :event has_many :group_teams, class_name: 'GroupTeam' has_many :teams, :through => :group_teams end # class Group end # module Model end # module SportDb
Version data entries
44 entries across 44 versions & 2 rubygems