Exercise: Work with Transactions and the Multi Module

Practice how to convert a transaction with an anonymous function to the one that uses Ecto.Multi in this challenge.

We'll cover the following

Problem statement

We’ve written a piece of code that inserts a new album record and a log entry. We used an anonymous function with the transaction function, as given below.

Get hands-on with 1400+ tech skills courses.