spec/models/mongoid/post.rb in bullet-4.6.0 vs spec/models/mongoid/post.rb in bullet-4.7.0
- old
+ new
@@ -1,7 +1,9 @@
class Mongoid::Post
include Mongoid::Document
+ field :name
+
has_many :comments, :class_name => "Mongoid::Comment"
belongs_to :category, :class_name => "Mongoid::Category"
embeds_many :users, :class_name => "Mongoid::User"