Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow
primary_key:
association option to be composite
Association's `primary_key` can be composite when derived from associated class `primary_key` or `query_constraints`. But we don't allow setting it explicitly even though Rails is already capable of supporting it. This commit allows `primary_key` association option to be an array.
- Loading branch information
1 parent
83a0132
commit cc4f368
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters