Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0.x new way to deal with schema breaks multi-schema apps #115

Closed
kaligrafy opened this issue May 21, 2014 · 3 comments
Closed

2.0.x new way to deal with schema breaks multi-schema apps #115

kaligrafy opened this issue May 21, 2014 · 3 comments

Comments

@kaligrafy
Copy link

I have a rails app that uses multiple schemas: schema_search_path: "rails, datawarehouse, public"

I want postgis to use the public schema. With versions 1.x of activerecord-postgis-adapter, it worked well (postgis went to the public schema, and all my other tables were sent to rails or datawarehouse schemas according to a parameter in my migrations files.

Now, with version 2.0.x, only the public schema is created and the other two are ignored (not created), so all my tables go to the public schema when migrating.

@teeparham
Copy link
Member

Thanks for reporting this issue. Can you write a failing test for this scenario? See https://github.com/rgeo/activerecord-postgis-adapter/blob/master/test/tasks_test.rb

For reference, I suspect PR #114 caused the change.

@teeparham
Copy link
Member

This adapter should now use the default postgresql adapter from rails to do the schema and structure dumps. It sounds like you want the schema dump to include the 'rails' or 'datawarehouse' schemas in the export. I'm not sure why that would not be happening without more knowledge about your setup.

This might help: http://timnew.github.io/blog/2012/07/17/use-postgres-multiple-schema-database-in-rails/

@teeparham
Copy link
Member

Closing as stale. Please re-open if this is still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants