Sha256: 077534fa4b4878aa4d9cb4bb7e05dcbb03f0626eb13ff83852dd7f01fbc5cbed
Contents?: true
Size: 501 Bytes
Versions: 21
Compression:
Stored size: 501 Bytes
Contents
class Draft < ActiveRecord::Base attr_accessible :player_id, :team_id, :date, :round, :pick, :overall, :college, :notes belongs_to :team belongs_to :player validates_numericality_of(:player_id, :only_integer => true) validates_numericality_of(:team_id, :only_integer => true) validates_presence_of(:date) validates_numericality_of(:round, :only_integer => true) validates_numericality_of(:pick, :only_integer => true) validates_numericality_of(:overall, :only_integer => true) end
Version data entries
21 entries across 21 versions & 3 rubygems