Sha256: 2be06b3e1764a9c84004003b03cecea38929ead7cf63d30bbf8cb3d84aa21d39

Contents?: true

Size: 237 Bytes

Versions: 2

Compression:

Stored size: 237 Bytes

Contents

require 'dm-core'
require 'dm-migrations'

class User

  include DataMapper::Resource
  include DataMapper::Migrations

  property :id, Serial

  property :name, String

  has 0..n, :posts

  has 0..n, :comments, :through => :posts

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dm-is-counter_cacheable-0.1.1 spec/integration/models/user.rb
dm-is-counter_cacheable-0.1.0 spec/integration/models/user.rb