Sha256: cc8f151c4a8226940abfe8aa3c0dd1327eacfe1783b6aeff2129b4c68cc21156

Contents?: true

Size: 604 Bytes

Versions: 2

Compression:

Stored size: 604 Bytes

Contents

class Draft
  include DataMapper::Resource

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

  belongs_to(:team)
  belongs_to(:player)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
merb-admin-0.8.5 spec/models/datamapper/draft.rb
merb-admin-0.8.3 spec/models/datamapper/draft.rb