-
Notifications
You must be signed in to change notification settings - Fork 242
How to connect to a separate db? #382
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
Comments
This is an intersting bug. I will work a fix in the day. Basically the hierarchy table should inherit the connection from the base table. |
Thanks for such a quick reply! |
@seuros I have made some changes to the code for this issue. PTAL. Thank you. #384 The pr's author @shawndodo is myself. |
@shawn-zhuxy , i will push a pre-release today. |
Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all;
I have found a same question in gitter but it did not be answered. So I have to ask again here.
I have a rails application that makes a connection to the different databases.
The model is like this:
Fetching records in Bar Service works fine. However, when I try to create an object it fails with: ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "billing_hierarchies" does not exist.
I create billing_hierarchies in foo service, and I do not hope to create billing_hierarchies in bar service.
So is it a clean way to connect the closure tree to a separate db?
Thank you.
The text was updated successfully, but these errors were encountered: