Sha256: 87b5ac6ea9c25b3708198256935ab99081b43241ab41612628bb1a57895b668b

Contents?: true

Size: 323 Bytes

Versions: 2

Compression:

Stored size: 323 Bytes

Contents

class Division
  include DataMapper::Resource

  property(:id, Serial)
  property(:created_at, DateTime)
  property(:updated_at, DateTime)
  property(:league_id, Integer, :required => true, :index => true)
  property(:name, String, :required => true, :index => true)

  belongs_to(:league)
  has(n, :teams)
end

Version data entries

2 entries across 2 versions & 1 rubygems

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