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

Version Path
rails_admin-0.4.9 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.4.8 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.4.7 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.4.6 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.4.5 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.4.4 spec/dummy_app/app/active_record/draft.rb
rails_admin-lbgraham-0.4.2 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.4.3 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.4.2 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.4.1 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.4.0 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.3.0 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.2.0 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.1.2 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.1.1 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.1.0 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.0.5 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.0.4 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.0.3 spec/dummy_app/app/active_record/draft.rb
rails_admin-0.0.2 spec/dummy_app/app/active_record/draft.rb