$ cd ~/elixir/hello_phoenix $ head -1 mix.exs defmodule HelloPhoenix.Mixfile do $ tree web/models web/models ├── comment.ex ├── post.ex └── user.ex $ curl -o new_phoenix_dot_iex.exs -L http://git.io/vCNRt $ elixir new_phoenix_dot_iex.exs $ cat .iex.exs import Ecto.Query, only: [from: 2] alias HelloPhoenix.Repo alias HelloPhoenix.Comment alias HelloPhoenix.Post alias HelloPhoenix.User $ iex -S mix iex(1)> Repo.all from u in User, select: u [debug] SELECT u0."id", u0."name", u0."inserted_at", u0."updated_at" FROM "users" AS u0 [] OK query=68.9ms queue=2.2ms [%HelloPhoenix.User{__meta__: #Ecto.Schema.Metadata<:loaded>, id: 1, inserted_at: #Ecto.DateTime<2015-10-18T07:19:31Z>, name: "Brad", updated_at: #Ecto.DateTime<2015-10-18T07:19:31Z>}]