Identity on `attribute :some_attribute, {:array , EmbeddedResource}`
So if I have the following resource.
And the following embedded resource.
If I do the following changeset twice.
It succeeds once and then fails a second time, which is as expected. The
Two resources with the same
The resulting records look something like the following.
I assume the
And the following embedded resource.
If I do the following changeset twice.
It succeeds once and then fails a second time, which is as expected. The
:unique_some_attribute identity prevents two records with some_attribute: nil. However If the next changeset is repeated twice.Two resources with the same
:some_attribute field are created. I had hoped this to be prevented by the :unique_some_attribute identity.The resulting records look something like the following.
I assume the
autogenerated_id fields being unique is preventing the desired outcome. Would that work and can they be disabled?