Sha256: 65dd7b2deb03065daf9742ce9a1bd1d283d8a1e0f1e4ecfe661094bbddee3bb2

Contents?: true

Size: 405 Bytes

Versions: 8

Compression:

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

8 entries across 8 versions & 1 rubygems

Version Path
merb-admin-0.5.6 spec/models/activerecord/draft.rb
merb-admin-0.5.5 spec/models/activerecord/draft.rb
merb-admin-0.5.4 spec/models/activerecord/draft.rb
merb-admin-0.5.3 spec/models/activerecord/draft.rb
merb-admin-0.5.2 spec/models/activerecord/draft.rb
merb-admin-0.5.1 spec/models/activerecord/draft.rb
merb-admin-0.5.0 spec/models/activerecord/draft.rb
merb-admin-0.4.9 spec/models/activerecord/draft.rb