[openstreetmap/openstreetmap-website] add a step to vagrant setup to migrate the test db (#1342)
notifications at github.com
Thu Oct 27 08:20:48 UTC 2016
To explain a bit more https://travis-ci.org/openstreetmap/openstreetmap-website/builds/170800818 is what (since yesterday) will happen if you migrate the test database. The fix was https://github.com/openstreetmap/openstreetmap-website/commit/15395bb94403bd5f2ecb2d9887573cca58801b1f which makes sure to reinitialise the test database.
The reason for the difference is that the migrations populate the `languages` table, but the tests expect it to be empty. That is achieved by `rake test:db` because it dumps the schema (without any data) from the dev database and then uses that to recreate the test database.
Because travis only has one database the migrate there was migrating the test database, and changing the rake target made it then dump and recreate that database losing the data in the process.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev