O'Reilly logo

Programming Phoenix by Jose Valim, Bruce Tate, Chris McCord

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required