Wrapping Up

It’s a good time to pause and take stock of what we’ve done. It’s been a busy chapter.

  • We began the chapter by introducing Ecto and announcing our intention to replace the in-memory repository with a database-backed repository using Ecto.

  • We configured our new database and connected it to OTP, so that Elixir could do the right thing in the event of a Phoenix or Ecto crash.

  • We created a schema, complete with information about each necessary field.

  • We created a migration, to help us specify our database tables and automate doing and undoing any database changes.

  • We created a changeset so Ecto could efficiently track and manage each change requested by our application.

  • We integrated this change into our application.

We’ve already come ...

Get Programming Phoenix now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.