Update Attributes Error Unknown modifier: $pushAll (9)

776 Views Asked by At

When I execute update Attributes in my model update_attributes prod_id: 34978273492, it returns Unknown modifier: $pushAll (9).

What is the root cause. TIA

1

There are 1 best solutions below

2
Alex On BEST ANSWER

In MongoDB 3.6 the deprecated $pushAll operator was removed, see for more details here. If updating mongoid to the latest version doesn't solve the problem, the only solution is to downgrade your Mongo version to 3.4.X