Packages
integratedb
0.1.0
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
Current section
Files
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