[openstreetmap-website] Installation instructions should also install btree for osm-test (#878)
notifications at github.com
Tue Mar 8 14:07:08 UTC 2016
So having read rather too many rake tasks, and actually tried the instructions out, here's the story...
As given the instruction correctly configure the dev database, and dump it's schema (because migrate does that when it completes) but then then suggest running `rake test` and the problem is that when you do that, with the test database still empty, this is what you see:
Migrations are pending. To resolve this issue, run:
bin/rake db:migrate RAILS_ENV=test
But of course if you actually do what it suggests and migrate the test database then the extra steps like btree_gist and the 3GL functions will be missing from the test database.
In fact the correct thing to do at that point is to run `rake db:test:prepare` to load the schema into the test database, or just `rake test:db` which will reset the database before running the tests.
I suspect that in the past resetting the database before running the tests was the default, but that at some point that changed.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev