Upgrade mongoid generator to comply with version 3 of the gem