Did Mongoid Break Your Migrations?

When using Mongoid and ActiveRecord side by side, a default install will break your ability to run rails migrations and generators. This is because Mongoid pushes aside ActiveRecord and assumes the tasks of migrations, which if you know anything about MongoDB or other document stores, is not needed. The solution is simple – tell ActiveRecord that you want to use it for generators with the following snippet added to your application.rb file:

    config.generators do |g| 
      g.orm :active_record