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

Reference consistency check correction #45840

Merged
merged 2 commits into from Aug 18, 2022
Merged

Reference consistency check correction #45840

merged 2 commits into from Aug 18, 2022

Conversation

sizief
Copy link
Contributor

@sizief sizief commented Aug 17, 2022

Summary

By default all belongs_to relations are set to required, and required means Rails checks the reference consistency. That sentence is correct only if the optional is set to true, then in this case Rails not only allows this field to be null but also it does not check the reference consistency. But this is not the default behavior.

Other Information

Related discussion when this change introduced

By default all belongs_to relations are set to required, and required means Rails checks the reference consistency. That sentence is correct only if the optional is set to true, then in this case Rails not only allows this field to be null but also it does not check the reference consistency. But this is not the default behavior.
@rails-bot rails-bot bot added the docs label Aug 17, 2022
Co-authored-by: Eileen M. Uchitelle <eileencodes@users.noreply.github.com>
@eileencodes eileencodes merged commit c13856e into rails:main Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants