We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Developers want to create the best applications they can for their users. In the process, they want to make sure to give good feedback to their users when data doesnโt get saved into the database. In Elixir, there is a great tool on top of the database that helps โ Ecto! It can put validations and constraints onto specific fields to ensure data integrity.
However, did you know they are differences between validations and constraints? I didnโt. In the process of building a side project, I ran into the problem a few times! Letโs discuss the purpose of each approach and see the differences between them. Weโll dive into why we need each towards the end.
continue reading on elixirschool.com
โ ๏ธ This post links to an external website. โ ๏ธ
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.