Sha256: 011840b78a5c0b99cd03177ffcaae538f187a1efb9ea8ea0c591e6b226f00f10

Contents?: true

Size: 579 Bytes

Versions: 5

Compression:

Stored size: 579 Bytes

Contents

class Draft
  include DataMapper::Resource

  property :id, Serial
  property :created_at, DateTime
  property :updated_at, DateTime
  property :player_id, Integer, :nullable => false, :index => true
  property :team_id, Integer, :nullable => false, :index => true
  property :date, Date, :nullable => false
  property :round, Integer, :nullable => false
  property :pick, Integer, :nullable => false
  property :overall, Integer, :nullable => false
  property :college, String, :length => 100, :index => true
  property :notes, Text

  belongs_to :team
  belongs_to :player
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
merb-admin-0.5.6 spec/models/datamapper/draft.rb
merb-admin-0.5.5 spec/models/datamapper/draft.rb
merb-admin-0.5.4 spec/models/datamapper/draft.rb
merb-admin-0.5.3 spec/models/datamapper/draft.rb
merb-admin-0.5.2 spec/models/datamapper/draft.rb