Packages

An Elixir Ecto Package to Boost Your Productivity and Achieve 90% throughput in Just 10% of the Time.

Current section

Files

Jump to
ecto_entity test support address.ex
Raw

test/support/address.ex

defmodule Address do
use Ecto.Schema
use Ecto.Entity
import Ecto.Changeset
schema "addresses" do
field(:name, :string)
belongs_to(:person, Person)
timestamps()
end
def changeset(address, attrs) do
address
|> cast(attrs, [:name])
end
end