Skip to content

Conversation

@rmehner
Copy link

@rmehner rmehner commented Nov 26, 2025

The database schema marks these two columns as non-nullable, so I think it might be nice to also reflect that in the validations on the model itself.

We stumbled upon this when using database_consistency to check our models and database to be consistent.

@rosa
Copy link
Member

rosa commented Dec 19, 2025

Hey @rmehner, thanks for this! This was done on purpose, however, following the same convention as other Rails gems, where DB constraints aren't necessarily translated into model validations.

Thanks a lot in any case, and sorry for the delay!

@rosa rosa closed this Dec 19, 2025
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.

2 participants