Sha256: 1689d006aecceabf8fbee4f4931f09ff1afeb503856ddc040cbc563a4a9585e8
Contents?: true
Size: 294 Bytes
Versions: 23
Compression:
Stored size: 294 Bytes
Contents
class Player < ActiveRecord::Base validates_presence_of(:name) validates_numericality_of(:number, :only_integer => true) validates_uniqueness_of(:number, :scope => :team_id, :message => "There is already a player with that number on this team") belongs_to(:team) has_one(:draft) end
Version data entries
23 entries across 23 versions & 1 rubygems