Sha256: 88a4eb826ce5d8ad617fbc33b666359becd6e94eca11d19de1611ff1528546ef
Contents?: true
Size: 411 Bytes
Versions: 2
Compression:
Stored size: 411 Bytes
Contents
class Draft < ActiveRecord::Base 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_admin-0.6.0 | spec/dummy_app/app/active_record/draft.rb |
rails_admin-0.5.0 | spec/dummy_app/app/active_record/draft.rb |