Sha256: eaa8de93e1f8bac48919ef9fd9864533c22d57b44c275c9bace4bc27b740b062

Contents?: true

Size: 236 Bytes

Versions: 5

Compression:

Stored size: 236 Bytes

Contents

class League
  include DataMapper::Resource

  property :id, Serial
  property :created_at, DateTime
  property :updated_at, DateTime
  property :name, String, :nullable => false, :index => true

  has n, :divisions
  has n, :teams
end

Version data entries

5 entries across 5 versions & 1 rubygems

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