Last Updated: February 25, 2016
·
351
· dcdieci

Sync test database scheme

Since I switched to rails 4 I noticed that a lot of things change regarding test tasks with rake.
I use to have a database which has some temporary table without migrations. Nevertheless I have a model which accesses this table. So I ende up with this command in order to keep the dev db with the test db in sync

rake db:schema:load RAILS_ENV=test