Using Active Record generators after Mongoid installation?

前端 未结 2 569
北荒
北荒 2020-12-12 15:49

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 r

相关标签:
2条回答
  • 2020-12-12 16:05
    rails g active_record:migration 
    
    0 讨论(0)
  • 2020-12-12 16:12

    You can config to use ActiveRecord generators in your config/application.rb

    config.generators do |g| 
      g.orm :active_record 
    end
    
    0 讨论(0)
提交回复
热议问题