Sha256: 9090388fc3880926b963b274d803799eba205816be0cbc9df6c68374d3ff4b4e
Contents?: true
Size: 490 Bytes
Versions: 17
Compression:
Stored size: 490 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(: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
17 entries across 17 versions & 1 rubygems