Sha256: 2ca73ccfd3a6e36d84a7b3e32e4e08700ae68f3da726de50dc977f0a795c696e
Contents?: true
Size: 466 Bytes
Versions: 1
Compression:
Stored size: 466 Bytes
Contents
class Person include DataMapper::Resource extend ConstraintSupport # properties property :id, Serial property :name, String, :nullable => false # associations has 1, :profile, constraint_options(:destroy) # has 1, :address, # :through => :profile has n, :project_memberships, constraint_options(:destroy) has n, :projects, :through => :project_memberships # has n, :tasks, # :through => :projects end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
snusnu-dm-accepts_nested_attributes-0.11.0 | spec/fixtures/person.rb |