test/models.rb in mongo_mapper-0.5.8 vs test/models.rb in mongo_mapper-0.6.0

- old
+ new

@@ -38,11 +38,11 @@ include MongoMapper::Document key :username, String, :default => 'Anonymous' key :body, String - key :commentable_id, String + key :commentable_id, ObjectId key :commentable_type, String belongs_to :commentable, :polymorphic => true timestamps! end @@ -60,11 +60,11 @@ include MongoMapper::Document key :body, String key :position, Integer key :_type, String - key :room_id, String + key :room_id, ObjectId belongs_to :room end class Enter < Message; end @@ -79,11 +79,11 @@ class Account include MongoMapper::Document key :_type, String - key :room_id, String + key :room_id, ObjectId key :last_logged_in, Time belongs_to :room end class User < Account; end @@ -143,20 +143,20 @@ end end class Collaborator include MongoMapper::Document - key :project_id, String + key :project_id, ObjectId key :name, String belongs_to :project end class Status include MongoMapper::Document - key :project_id, String - key :target_id, String + key :project_id, ObjectId + key :target_id, ObjectId key :target_type, String key :name, String, :required => true key :position, Integer belongs_to :project @@ -164,10 +164,10 @@ end class RealPerson include MongoMapper::Document - key :room_id, String + key :room_id, ObjectId key :name, String belongs_to :room many :pets