Skip to content

incorrect_length_validation: ignore STI models#213

Open
fatkodima wants to merge 1 commit into
gregnavis:masterfrom
fatkodima:ignore-sti-for-incorrect_length_validation
Open

incorrect_length_validation: ignore STI models#213
fatkodima wants to merge 1 commit into
gregnavis:masterfrom
fatkodima:ignore-sti-for-incorrect_length_validation

Conversation

@fatkodima

Copy link
Copy Markdown
Contributor

If using STI and there is no validation on the model, but there is a limit in the database for the field, incorrect_length_validation checker produces violations for both root model and its children.

I think this is unnecessary and should be reported only for the root model, because this is the place where it should be fixed.

@fatkodima fatkodima force-pushed the ignore-sti-for-incorrect_length_validation branch from ba9dddd to 51b593e Compare April 17, 2025 16:08
@gregnavis gregnavis self-requested a review August 5, 2025 16:31
@fatkodima fatkodima force-pushed the ignore-sti-for-incorrect_length_validation branch from 51b593e to 9789b25 Compare April 22, 2026 13:04
@fatkodima

Copy link
Copy Markdown
Contributor Author

@gregnavis Its been a while 😄. Time for another round of merges?
We run a fork of this gem with all my PRs merged for quite a while - no problems so far.

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.

1 participant