Sha256: 5fd1234bd057f2aac8d85c91cee46e29d92ce6d2349b67f381875dbc4b082e01

Contents?: true

Size: 592 Bytes

Versions: 15

Compression:

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

15 entries across 15 versions & 1 rubygems

Version Path
merb-admin-0.7.3 spec/models/datamapper/draft.rb
merb-admin-0.7.2 spec/models/datamapper/draft.rb
merb-admin-0.7.1 spec/models/datamapper/draft.rb
merb-admin-0.7.0 spec/models/datamapper/draft.rb
merb-admin-0.6.9 spec/models/datamapper/draft.rb
merb-admin-0.6.8 spec/models/datamapper/draft.rb
merb-admin-0.6.7 spec/models/datamapper/draft.rb
merb-admin-0.6.6 spec/models/datamapper/draft.rb
merb-admin-0.6.5 spec/models/datamapper/draft.rb
merb-admin-0.6.4 spec/models/datamapper/draft.rb
merb-admin-0.6.3 spec/models/datamapper/draft.rb
merb-admin-0.6.2 spec/models/datamapper/draft.rb
merb-admin-0.6.1 spec/models/datamapper/draft.rb
merb-admin-0.6.0 spec/models/datamapper/draft.rb
merb-admin-0.5.7 spec/models/datamapper/draft.rb