Packages

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

Current section

Files

Jump to
entity test test_helper.exs
Raw

test/test_helper.exs

defmodule Person do
use Entity
use Ecto.Schema
import Ecto.Changeset
schema "people" do
field :first_name, :string
field :last_name, :string
field :age, :integer
end
def changeset(%Person{} = person, attrs) do
person
|> cast(attrs, [:first_name, :last_name, :age])
end
end
ExUnit.start()