Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up`#[belongs_to]` doesn't support composite foreign key #1413
Comments
This comment has been minimized.
|
At the moment we would not be able to support composite foreign keys here without making a breaking change to |
sgrif
closed this
Dec 19, 2017
This comment has been minimized.
|
Thank you. I'll use surrogate keys. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
KeenS commentedDec 19, 2017
•
edited
The title is describing problem.
Suppose you have this schema
and you'd like to derive
Associationto member_descriptioncurrent implementation supports only one foreign key. Are there any chance to allow composite foreign key in
belongs_toattr?Checklist