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