Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 80815bbbe4
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (23 sloc) 0.995 kb
# == Schema Information
#
# Table name: events
#
# id :integer not null, primary key
# title :string(255) not null
# key :string(255) not null
# league_id :integer not null
# season_id :integer not null
# start_at :datetime not null
# end_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
# team3 :boolean default(TRUE), not null
#
module SportDB::Models
class Event
has_many :fix_rounds, :conditions => { :fix => true }, :order => 'pos', :class_name => 'Round', :foreign_key => 'event_id'
has_many :fix_playoff_rounds, :conditions => { :fix => true , :playoff => true }, :order => 'pos', :class_name => 'Round', :foreign_key => 'event_id'
has_many :flex_rounds, :conditions => { :flex => true }, :order => 'pos', :class_name => 'Round', :foreign_key => 'event_id'
end # class Event
end # module SportDB::Models
Event = SportDB::Models::Event
Jump to Line
Something went wrong with that request. Please try again.