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

Allow association foreign_key to be an Array #51334

Merged

Conversation

nvasilevski
Copy link
Contributor

Related to #49671 (comment)

Currently the only way to setup a composite foreign key is to use query_constraints. With our intention to decouple query_constraints from foreign_key we need to allow foreign_key to be an Array to preserve the current behavior achieved with query_constraints.

Currently the only way to setup a composite foreign key is to use `query_constraints`.
With our intention to decouple `query_constraints` from `foreign_key` we need to allow
`foreign_key` to be an Array to preserve the current behavior achieved with `query_constraints`.
@rafaelfranca rafaelfranca merged commit e6f92f1 into rails:main Mar 18, 2024
4 checks passed
@rafaelfranca rafaelfranca deleted the allow-setting-assoc-foreign-key-as-an-array branch March 18, 2024 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants