-
Notifications
You must be signed in to change notification settings - Fork 29
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
Foreign key issue #43
Comments
If this is a tenant table, you can simply use See here: https://hexdocs.pm/ecto/Ecto.Migration.html#references/2 Does that answer your question? |
Is there any workaround to create a reference on another schema? Like using |
@FabienHenon I believe that's against the nature of tenants. Each tenant is their own isolated DB. You can add the foreign key, but I don't believe you'll be able to use a foreign key constraint in PG. |
Hi. I have one question. If I create a table that have a foreign key references to tenant's table (fk_id_tenant). How can I create this relation?
The text was updated successfully, but these errors were encountered: