I have a Rails 3.2.1 project that I'm trying to run my specs on.
When I run: rake
rake aborted! PG::Error: ERROR: invalid value for parameter "search_path": "example" DETAIL: schema "example" does not exist : SET search_path TO example
From what I can work out, rake db:test:prepare drops the test database and then attempts to recreate it from the schema.rb. The thing is, database.yml has the line
schema_search_path: example
so when it tries to reconnect, it fails with the above error.
I think my question is, how can I get rake db:test:prepare to setup the schema_path too?