This is an excerpt from Manning's book Phoenix in Action. Login to get full access to this book.
Listing 7.5. Defining Auction.Item’s schema for Ecto defmodule Auction.Item do use Ecto.Schema schema "items" do field :title, :string field :description, :string field :ends_at, :utc_datetime timestamps() #1 end end
defmodule Auction.Item do use Ecto.Schema schema "items" do field :title, :string field :description, :string field :ends_at, :utc_datetime timestamps() #1 end end