Sha256: 7a9922c12fefcb9035d28340ca073635db5098cb7c9445720beef47483ef6ece

Contents?: true

Size: 510 Bytes

Versions: 8

Compression:

Stored size: 510 Bytes

Contents

class Team < ActiveRecord::Base
  validates_numericality_of :league_id, :only_integer => true
  validates_numericality_of :division_id, :only_integer => true
  validates_presence_of :name
  validates_presence_of :manager
  validates_numericality_of :founded, :only_integer => true
  validates_numericality_of :wins, :only_integer => true
  validates_numericality_of :losses, :only_integer => true
  validates_numericality_of :win_percentage

  belongs_to :league
  belongs_to :division
  has_many :players
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
merb-admin-0.5.6 spec/models/activerecord/team.rb
merb-admin-0.5.5 spec/models/activerecord/team.rb
merb-admin-0.5.4 spec/models/activerecord/team.rb
merb-admin-0.5.3 spec/models/activerecord/team.rb
merb-admin-0.5.2 spec/models/activerecord/team.rb
merb-admin-0.5.1 spec/models/activerecord/team.rb
merb-admin-0.5.0 spec/models/activerecord/team.rb
merb-admin-0.4.9 spec/models/activerecord/team.rb