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

Require belongs_to associations by default #632

Open
anthonycrumley opened this issue Jun 21, 2018 · 0 comments
Open

Require belongs_to associations by default #632

anthonycrumley opened this issue Jun 21, 2018 · 0 comments

Comments

@anthonycrumley
Copy link
Contributor

As a developer, I want config.active_record.belongs_to_required_by_default = true so that the data integrity of associations will be better.

This setting is found in config/application.rb. To be able to set this to true, the following will need to happen.

  • Fix all the tests that are failing by providing values for all the belongs_to associations.
  • Determine if any of the belongs_to associations are not required and mark them so.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant