mongoidとactiverecordが併存する場合のmigration
mongoidとactiverecordが併存する場合で、
mongoidを優先させていると、
rails generate等のコマンド発行時にmongoidで解決しようとする。
このため、通常は、
rails g migration AddHoge
等で解決できるが、mongoidにそんなのないよ、
error mongoid [not found]
と怒られるので、明示的に、
rails g active_record:migration AddHoge
とする事で解決できる。
active_recordと間にアンダーバーが入るので注意。