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 composite primary key to be derived from schema #47633

Conversation

nvasilevski
Copy link
Contributor

@nvasilevski nvasilevski commented Mar 10, 2023

This PR stops issuing the
"Active Record does not support composite primary key" warning and allows ActiveRecord::Base#primary_key to be derived as an Array

I've removed tests that were expecting or not expecting the warning to be raised as the warning doesn't exist anymore.

Copy link
Member

@eileencodes eileencodes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's merge this last, after everything else is complete. Then we can add the changelog and docs with this change as it is the last piece to enabling composite keys.

@eileencodes eileencodes self-assigned this Mar 13, 2023
@eileencodes eileencodes added this to the 7.1.0 milestone Mar 13, 2023
@nvasilevski nvasilevski force-pushed the allow-deriving-composite-primary-key-from-schema branch 3 times, most recently from f2a9767 to 5931c13 Compare June 5, 2023 20:02
This commit stops issuing the
"Active Record does not support composite primary key" warning
and allows `ActiveRecord::Base#primary_key` to be derived as an `Array`
@nvasilevski nvasilevski force-pushed the allow-deriving-composite-primary-key-from-schema branch from 5931c13 to 257f012 Compare June 6, 2023 14:39
@eileencodes eileencodes merged commit 791f109 into rails:main Jun 6, 2023
9 checks passed
@eileencodes eileencodes deleted the allow-deriving-composite-primary-key-from-schema branch June 6, 2023 15:01
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