spec/fixtures/project.rb in snusnu-dm-accepts_nested_attributes-0.0.6 vs spec/fixtures/project.rb in snusnu-dm-accepts_nested_attributes-0.10.0
- old
+ new
@@ -1,8 +1,16 @@
class Project
+
include DataMapper::Resource
+
+ # properties
+
property :id, Serial
property :name, String, :nullable => false
+
+ # associations
+
has n, :tasks
has n, :project_memberships
has n, :people, :through => :project_memberships
+
end
\ No newline at end of file