A fun thing to do:
Add a DB-level data constraint to find all the places your app-level validation was wrong.
you *cannot* guarantee clean data with app code only
Add a DB-level data constraint to find all the places your app-level validation was wrong.
you *cannot* guarantee clean data with app code only
Comments
Or when your codebase grows and you don't even notice all the places.
It can be fine, just remember to clean up your shit.