Sha256: e0979c92ae3b4fff3c0bb9230106683a6fdd24f26af80b94dfdf2a8657840381
Contents?: true
Size: 521 Bytes
Versions: 6
Compression:
Stored size: 521 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
6 entries across 6 versions & 1 rubygems