Major changes to migrate models to mongoid