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