Sha256: 12b82a30099a7df33b64fe695f1fd9b13cf0a6568e7cd4862e5d41e4c09f5b76

Contents?: true

Size: 186 Bytes

Versions: 5

Compression:

Stored size: 186 Bytes

Contents

require 'blog/post'

require 'dm-core'

module Blog
  class User

    include DataMapper::Resource

    property :id, Serial

    property :name, String

    has 0..n, :posts

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dm-visualizer-0.2.3 spec/helpers/projects/library/lib/blog/user.rb
dm-visualizer-0.2.2 spec/helpers/projects/library/lib/blog/user.rb
dm-visualizer-0.2.1 spec/helpers/projects/library/lib/blog/user.rb
dm-visualizer-0.2.0 spec/helpers/projects/library/lib/blog/user.rb
dm-visualizer-0.1.0 spec/helpers/projects/library/lib/blog/user.rb