ash_phoenix/test/support/resources/post_with_default.ex
Zach Daniel 1fe82efd04 chore: add a test trying to reproduce an issue
chore: update locked version of ash
2021-11-10 15:11:22 -05:00

13 lines
267 B
Elixir

defmodule AshPhoenix.Test.PostWithDefault do
@moduledoc false
use Ash.Resource, data_layer: Ash.DataLayer.Ets
ets do
private?(true)
end
attributes do
uuid_primary_key(:id)
attribute(:text, :string, allow_nil?: false, default: "foo")
end
end