Prevent double-bookings with Exclusion Constraints in Postgres using Ecto
Exclusion constraints in Postgres can efficiently detect overlapping bookings, appointments, and schedules and block their creation. This blog post explains how to implement them using Ecto.
https://www.peterullrich.com/prevent-overlapping-schedules-with-ecto-and-postgres
Read next Adding Elixir to Erlang via Rebar3