Mongoid 5 is a major upgrade to Mongoid for several reasons :
- Moped is not used anymore. The driver is the brand new official MongoDB ruby driver 2.0
- Mongoid is now officialy maintained by Mongodb
Here is a non comprehensive list of things to chexk or upgrade.
- Mongoid.yml. The driver changes, so the options you pass to mongoid.yml also do. You should generate a brand new one and find the equivalent options you were using. The
sessions
entry has been replaced by theclients
entry. - Aggregation. User.collection.aggregate now requires an array as argument, not a variable number of hashes
Moped::
classes likeErrors
orBSON
don't exist anymore.- find_and_modify has been removed