mongodb - Migrating rails mongoid to activerecord, db:migrate running activerecord second time? -


i'm converting rails application that's based on mongo postgres. want run both dbs concurrently in order migrate objects. created model , migration , run rake db:migrate (after setting postgres db) , see model table created. see appears mongo migration running , reason invoking activerecord migrations in db/migrate second time , causing error since table created.

is there way have db:migrate not run on activerecord migrations when it's running mongoid migrations? commented following line out of migrate task in mongoid gem not ideal solution.

mongoid::migrator.migrate("db/migrate/", env["version"] ? env["version"].to_i : nil)

from rakefile: gems/mongoid_rails_migrations-1.0.1/lib/mongoid_rails_migrations/mongoid_ext/railties/database.rake

thanks in advance.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -