Skip to content

Commit 821e2fc

Browse files
committed
Attempt to fix CI
1 parent bed8dc4 commit 821e2fc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/ash_storage/transformers/setup_storage.ex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,15 @@ defmodule AshStorage.Transformers.SetupStorage do
7474
filter: Ash.Expr.expr(name == ^to_string(attachment_def.name))
7575
}
7676

77+
polymorphic? = is_nil(parent_rel)
78+
7779
Ash.Resource.Builder.add_relationship(
7880
dsl_state,
7981
rel_type,
8082
attachment_def.name,
8183
attachment_resource,
8284
destination_attribute: destination_attribute,
85+
validate_destination_attribute?: not polymorphic?,
8386
filters: [name_filter],
8487
public?: true
8588
)

0 commit comments

Comments
 (0)