Migrate Dev And Test At The Same Time

Nov 9, 2012

I finally got tired of migrating each database whenever I added a change to the schema. So tired, I finally added a alias.

alias migrate='rake db:migrate; RAILS_ENV=test rake db:migrate'

Now I just run migrate on the command line and both DB’s are up to date.

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.