Packages

IntegrateDB is a database sharing system. It provides integration primitives and data ownership and migration controls. Use it to integrate applications directly through a Postgres database.

Current section

Files

Jump to
integratedb lib integrate foo.ex
Raw

lib/integrate/foo.ex

defmodule Integrate.Foo do
use Integrate, :schema
schema "foos" do
field :name, :string
timestamps()
end
@doc false
def changeset(foo, attrs) do
foo
|> cast(attrs, [:name])
|> validate_required([:name])
end
end