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