Chapter 8. Making changes with Ecto.Changeset

This chapter covers

  • Discovering how Ecto deals with database updates
  • Creating a changeset for Auction.Item
  • Using changesets to update the database

So far, you’ve configured your Auction app to do a few nice things:

  • Get Auction.Items from the database
  • Save new Auction.Items to the database via IEx
  • Display the Auction.Items in the database in a web page

It definitely needs to do a few more things before the investors come knocking on your door, begging to give you their money. In this chapter, we’ll focus on updating data in the database. It sounds like it should be a simple thing to do, since you already know how to get and store records, but it’s a bit more complex than that. Most times, ...

Get Phoenix in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.