-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 6.0.0
-
Component/s: None
-
None
To reproduce:
class Band include Mongoid::Document field :name, type: String end band = Band.create legacy_fields = { "this_is_not_a_field" => 1, "this_legacy_field_is_nil" => nil } Band.collection.find(_id: band.id).update_one("$set" => legacy_fields) band.reload band.dup