Sha256: b88d634fe847eee63187f4dcf5a3295daf4653ad03e3d17926ffa905b5bea0cf
Contents?: true
Size: 383 Bytes
Versions: 7
Compression:
Stored size: 383 Bytes
Contents
module SportDb module Model class Stage < ActiveRecord::Base if ActiveRecord::VERSION::MAJOR == 3 has_many :games, order: 'pos' else has_many :games, -> { order('pos') } end belongs_to :event has_many :stage_teams, class_name: 'StageTeam' has_many :teams, :through => :stage_teams end # class Stage end # module Model end # module SportDb
Version data entries
7 entries across 7 versions & 1 rubygems