Sha256: bc5531d3187af79434e73220fe0b83f9e99c3d452dc6a9d463a37ef1a586f574

Contents?: true

Size: 411 Bytes

Versions: 7

Compression:

Stored size: 411 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

7 entries across 7 versions & 3 rubygems

Version Path
rails_admin-0.0.1 spec/dummy_app/app/active_record/draft.rb
obitum-rails_admin-0.0.5 spec/dummy_app/app/models/draft.rb
drewda_rails_admin-0.0.1 spec/dummy_app/app/models/draft.rb
obitum-rails_admin-0.0.4 spec/dummy_app/app/models/draft.rb
obitum-rails_admin-0.0.3 spec/dummy_app/app/models/draft.rb
obitum-rails_admin-0.0.2 spec/dummy_app/app/models/draft.rb
obitum-rails_admin-0.0.1 spec/dummy_app/app/models/draft.rb