I\'m trying to make an application in rails 4 using MongoDB(mongoid) and MySQL together. But I\'m not able to set it up.
I\'m following the steps below:
add these line to your application.rb file: config.generators do |g| g.orm :active_record end
application.rb
config.generators do |g| g.orm :active_record end
This will force rails g to use active record.
And whenever you want to generate a model for mongodb, use: rails g mongoid:model yourmodelname
rails g mongoid:model yourmodelname