spec/app/models/record.rb in mongoid-5.4.1 vs spec/app/models/record.rb in mongoid-6.0.0.beta
- old
+ new
@@ -1,7 +1,8 @@
class Record
include Mongoid::Document
field :name, type: String
+ field :producers, type: Array
field :before_create_called, type: Mongoid::Boolean, default: false
field :before_save_called, type: Mongoid::Boolean, default: false
field :before_update_called, type: Mongoid::Boolean, default: false
field :before_validation_called, type: Mongoid::Boolean, default: false