mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-21 07:42:48 +12:00
14 lines
267 B
Elixir
14 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
|