test/test_data_mapper.rb in pagify-0.7.0 vs test/test_data_mapper.rb in pagify-0.7.1
- old
+ new
@@ -40,10 +40,10 @@
class Pet
include DataMapper::Resource
property :id, Serial
property :name, String
- belongs_to :user, :nullable => true
+ belongs_to :user, :required => false
end
User.auto_migrate!
Pet.auto_migrate!