Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
`rake db:create` creates a schema when `schema_search_path` is specified #10140
After this patch
referenced this pull request
Apr 8, 2013
I don't think we should do this, any more than we'd mkdir everything listed in
That said, if we do want this change, we probably don't want to stop iterating the list as soon as we encounter a schema that exists.
There's also the possibility of quoted schema names (potentially including commas). And then there's the
It's not (supposed to be) an error to set a
Hi, I'd still like this sequence of commands to work even if there's a customized schema.
rake db:create rake db:migrate
But I see this error
So instead, I have to do
rake db:create psql -c 'create schema schema_name;' -U user_name db_name rake db:migrate
Like pointed out above, set search path itself does not fail but when you actually make actions on the non-existent schema, you'll get an error.