We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f66c743 commit 72170bdCopy full SHA for 72170bd
lib/data_layer.ex
@@ -2400,7 +2400,7 @@ defmodule AshPostgres.DataLayer do
2400
"#{table}_#{identity.name}_index" == constraint
2401
end)
2402
2403
- field_names = if identity, do: identity.field_names, else: [field]
+ field_names = if identity, do: identity.field_names || [field], else: [field]
2404
2405
Enum.map(field_names, fn field_name ->
2406
Ash.Error.Changes.InvalidAttribute.exception(
0 commit comments