Current section
Files
Jump to
Current section
Files
lib/uof/api/schemas/descriptions/attributes_attribute.ex
defmodule UOF.API.Schemas.Descriptions.AttributesAttribute do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
@primary_key false
embedded_schema do
field(:name, :string)
field(:description, :string)
end
def changeset(struct, params) do
struct
|> cast(params, [:name, :description])
end
end