-
-
Notifications
You must be signed in to change notification settings - Fork 910
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
JoinTableMatcher doesn't find join tables with schema #1337
Comments
Oh, interesting. We previously received an issue, #625, which I think is related to this, and at the time I didn't know what was going on here. If |
Hi, yes I saw that issue too.
I'm in the same situation, I don't know what should be the solution. |
Hi, @afdev82, are you working on this? If not can I start working on it? Thanks! 😄 |
Hi @vsppedro, no I'm not working on this issue. |
Hi, @afdev82, can you help me create a simple rails app with this problem, please? (Or tell me what should I do.) I'm really sorry, but I'm not sure how to replicate this problem locally. |
The problem is when I use PostgreSQL as DBMS, because then I have the possibility to use different schemas inside the same database. To reproduce I've done the following steps.
|
Thank you very much for all this information! I will try to find a solution. |
I'm trying to have a test for a HBTM association where the join table name includes the schema:
The problem that I found is that if I include the schema in the test (as it should be), the JoinTableMatcher doesn't find the table in the list of tables provided by ActiveRecord.
I think the problem is that the tables_and_views method returns a list without the schemas, so the join_table_exists? method raises the error.
How could I solve this problem?
Thank you for your support.
The text was updated successfully, but these errors were encountered: