Wrapping Up: Make Changes with Changesets

Review what we have learned about making changes with changesets.

What have we learned so far?

We did a deep dive into the Ecto.Changeset module and saw the many functions to help us manage to make changes to our data. With its support for associations, changesets can modify related records across multiple tables, allowing us to make complicated changes with just a few lines of code.

However, we might need to make even more complex changes. We might need to change several unrelated records and make sure that they all change together. Ecto gives us transactions and the Multi module for these situations. . We’ll take a look at those in the upcoming chapter.

Get hands-on with 1200+ tech skills courses.