mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-20 15:22:49 +12:00
ad5f1c4b5e
* test: set primary action explicitly * chore: update all deps
17 lines
311 B
Elixir
17 lines
311 B
Elixir
defmodule AshPhoenix.Test.PostWithDefault do
|
|
@moduledoc false
|
|
use Ash.Resource, data_layer: Ash.DataLayer.Ets
|
|
|
|
ets do
|
|
private?(true)
|
|
end
|
|
|
|
actions do
|
|
defaults([:create])
|
|
end
|
|
|
|
attributes do
|
|
uuid_primary_key(:id)
|
|
attribute(:text, :string, allow_nil?: false, default: "foo")
|
|
end
|
|
end
|