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

Clarify no support for non PK id columns #34577

Merged
merged 1 commit into from
Nov 30, 2018

Conversation

gmcgibbon
Copy link
Member

Summary

Closes #34574.

Adds docs to clarify that we don't support non-primary key ID columns.

I had originally tried adding a warning upon setting primary_key= (similar to what we do for composite primary keys) but we have test coverage for not hitting the DB while setting the primary key, and I don't want to add a runtime check.

@kamipo kamipo merged commit 604fac6 into rails:master Nov 30, 2018
@gmcgibbon gmcgibbon deleted the id_as_non_pk_docs branch November 30, 2018 18:55
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

3 participants