Sha256: b46e2775b6efbb3fffb5d8165b495a1217cc20cca5da37d987ff9837f5574fa5
Contents?: true
Size: 413 Bytes
Versions: 24
Compression:
Stored size: 413 Bytes
Contents
class Draft < ActiveRecord::Base 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) belongs_to(:team) belongs_to(:player) end
Version data entries
24 entries across 24 versions & 2 rubygems