Sha256: 0f3e36bd1110a65e64dd72d0832d7027147dd48d95cd717ad75b4108fbd9cb34

Contents?: true

Size: 355 Bytes

Versions: 6

Compression:

Stored size: 355 Bytes

Contents

module SportDB
  module Models


class Event < ActiveRecord::Base
  
  has_many :rounds, :order => 'pos'  # all (fix and flex) rounds
  
  has_many :groups, :order => 'pos'
  
  has_many :event_teams, :class_name => 'EventTeam'
  has_many :teams, :through => :event_teams

end # class Event


  
 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/event.rb
sportdb-0.4.1 lib/sportdb/models/event.rb
sportdb-0.4.0 lib/sportdb/models/event.rb
sportdb-0.3.3 lib/sportdb/models/event.rb
sportdb-0.3.2 lib/sportdb/models/event.rb
sportdb-0.3.1 lib/sportdb/models/event.rb