Rails Engines And Migrations

May 25, 2013

Getting migrations to run when setting up your Rails engine can be a bit tricky. If you generate some sort of migration either via a scaffold or model, and run rake db:migrate, you will see no output. There is nothing telling you if you failed or you succeeded.

What you need to do is cd into your dummy app cd test/dummy and copy the migrations over to the app, and then run them with `rake

:install:migrations`. This is on Ruby 2.0 and Rails 4.0.0.rc.

If you would like to be notified the next time I write something, you can subscribe with your choice of RSS or Email.

I promise not to spam you and you can unsubscribe at anytime.

Also, here are some other items you might like longer longer:

or go see everything in the archive.