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

Fix missing_presence_validation for custom attributes with defaults #155

Conversation

fatkodima
Copy link
Contributor

Fixes #154.

This PR fixes missing_presence_validation not only for enums (which is internally defined as an attribute), but for any attribute having a default.

@fatkodima fatkodima force-pushed the fix-missing_presence_validation-for-attrs-with-default branch 2 times, most recently from d5ab64b to 02d0706 Compare November 11, 2023 11:12
@fatkodima fatkodima force-pushed the fix-missing_presence_validation-for-attrs-with-default branch from 02d0706 to 36ffc52 Compare November 11, 2023 11:45
@fatkodima
Copy link
Contributor Author

Too much version crap in this PR. I would still recommend dropping support for older railses.

active_record_doctor is a code quality tool. People who are on old railses do not have tests, meaning they do not care about any quality and for sure won't use this tool and are not a target audience. At least rails < 6.1 can be dropped, in my mind.

@gregnavis
Copy link
Owner

I'm closing this for now as I don't believe that the original report was natural bug.

@gregnavis gregnavis closed this Dec 4, 2023
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

Successfully merging this pull request may close these issues.

MissingPresenceValidation should ignore enum's with default values
2 participants