spec/fixtures/task.rb in snusnu-dm-accepts_nested_attributes-0.0.6 vs spec/fixtures/task.rb in snusnu-dm-accepts_nested_attributes-0.10.0
- old
+ new
@@ -1,7 +1,16 @@
class Task
+
include DataMapper::Resource
+
+ # properties
+
property :id, Serial
property :project_id, Integer, :nullable => false
+
property :name, String, :nullable => false
+
+ # associations
+
belongs_to :project
+
end
\ No newline at end of file