Understanding Lists LearningElixir: ElixirConf 2015 Report

Embedding Elixir Structs in Ecto Models

With Ecto, you can embed individual or arrays of structs directly inside another model. This makes it easy to pull up records without having to do a SQL join, since the record is on the same table. A couple examples of when you might want to do this are for settings or addresses.

Learn more here!