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
Written by dcdieci
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Test
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#