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

Version Path
sportdb-models-1.19.1 lib/sportdb/models/group.rb
sportdb-models-1.19.0 lib/sportdb/models/group.rb
sportdb-models-1.18.6 lib/sportdb/models/group.rb
sportdb-models-1.18.5 lib/sportdb/models/group.rb
sportdb-models-1.18.4 lib/sportdb/models/group.rb
sportdb-models-1.18.3 lib/sportdb/models/group.rb
sportdb-models-1.18.2 lib/sportdb/models/group.rb
sportdb-models-1.18.1 lib/sportdb/models/group.rb
sportdb-models-1.18.0 lib/sportdb/models/group.rb
sportdb-models-1.17.0 lib/sportdb/models/group.rb
sportdb-models-1.16.2 lib/sportdb/models/group.rb
sportdb-models-1.16.1 lib/sportdb/models/group.rb
sportdb-models-1.16.0 lib/sportdb/models/group.rb
sportdb-models-1.15.2 lib/sportdb/models/group.rb
sportdb-models-1.15.1 lib/sportdb/models/group.rb
sportdb-models-1.15.0 lib/sportdb/models/group.rb
sportdb-models-1.14.2 lib/sportdb/models/group.rb
sportdb-models-1.14.1 lib/sportdb/models/group.rb
sportdb-models-1.14.0 lib/sportdb/models/group.rb
sportdb-models-1.13.0 lib/sportdb/models/group.rb