Sha256: 549c17d86c65fce2ee18540e25cb8e7e16832306e52227d2f7ab70971ca02f09

Contents?: true

Size: 317 Bytes

Versions: 6

Compression:

Stored size: 317 Bytes

Contents

module SportDB
  module Models


class Group < ActiveRecord::Base
    
  has_many :games, :order => 'pos'
  belongs_to :event
  
  has_many :group_teams, :class_name => 'GroupTeam'
  has_many :teams, :through => :group_teams
      
end # class Group
  
  
 end # module Models
end # module SportDB

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sportdb-0.4.2 lib/sportdb/models/group.rb
sportdb-0.4.1 lib/sportdb/models/group.rb
sportdb-0.4.0 lib/sportdb/models/group.rb
sportdb-0.3.3 lib/sportdb/models/group.rb
sportdb-0.3.2 lib/sportdb/models/group.rb
sportdb-0.3.1 lib/sportdb/models/group.rb