DEV Community

Discussion on: Data constraints: database layer or app logic?

Collapse
 
suprnova32 profile image
Patricio Cano

👍 here. You can always find a way to skip the app layer, specially on the console for RoR, for example. Data constraints should be added to the DB first, and then as a sanity check, added to the app layer.