Taking Hashrocket's "Ultimate Elixir CI" to the Next Level [Elixir Wizards S8E1] Miguel Cobá on Deploying in Elixir and Other Languages

How to grasp the business logic with unique_index

How do I ensure a unique index when only a user tries to get more than one ticket for a paid conference? And be more flexible in accepting such users get more than one ticket for a free conference? Take a look here: https://til.simplebet.io/posts/g9spnqajlu-how-to-grasp-the-business-logic-with-uniqueindex