Using Active Record generators after Mongoid installation?
10,852
Solution 1
rails g active_record:migration
Solution 2
You can config to use ActiveRecord generators in your config/application.rb
config.generators do |g|
g.orm :active_record
end
Author by
Allyl Isocyanate
Updated on June 25, 2022Comments
-
Allyl Isocyanate almost 2 years
I'm using MongoDB via Mongoid integration, as well as ActiveRecord in a project. I would like to generate migrations for active record, and Mongoid is the default when I run.
rails g migration
Any ideas how to specify AR as my default generator for migrations, models, etc?
Thanks!