Sha256: e9744fe33051b9e01fa419b2c1bd588d42da42a5c5a3e79896b39c5e77703e17

Contents?: true

Size: 242 Bytes

Versions: 2

Compression:

Stored size: 242 Bytes

Contents

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

class Post

  include DataMapper::Resource
  include DataMapper::Migrations

  property :id, Serial

  property :title, String

  property :body, Text

  has 0..n, :comments

  belongs_to :user

end

Version data entries

2 entries across 2 versions & 1 rubygems

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