-
Notifications
You must be signed in to change notification settings - Fork 19
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
Consider normalizing empty values to NULL when inserting into the database #754
Comments
Do we actually have any case where missing value is acceptable ? |
@virtualfeline This is the default behaviour of Rails, if by missing value you mean empty string. I bet 99% of text columns in our database are empty if no value has been provided at the application level. I don't see production data so I cannot say how many of them are empty.
Exactly! I am sure I want to see
|
In Rails when saving a model from a form and values are not provided by the user, an empty string is recorded to the database instead of a NULL (mixing blanks and NULLs can become confusing).
The text was updated successfully, but these errors were encountered: