How to run rails migrate on your test database

As it turns out rails db:migrate does not update your test data­base. Use the fol­low­ing com­mand to do so.

rake environment RAILS_ENV=test db:migrate

Ryan Sukale

Ryan is a UX engineer living in San Francisco, California.

You may also like...