spec/fixtures/person.rb in snusnu-dm-accepts_nested_attributes-0.10.0 vs spec/fixtures/person.rb in snusnu-dm-accepts_nested_attributes-0.11.0

- old
+ new

@@ -1,16 +1,28 @@ class Person include DataMapper::Resource + extend ConstraintSupport # properties property :id, Serial property :name, String, :nullable => false # associations - has 1, :profile - has n, :project_memberships - has n, :projects, :through => :project_memberships + 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 \ No newline at end of file