Hiya, I want to use ex_machina to create a factory for schema that uses PolymorphicEmbed.polymorphic_embeds_one
to embed an associated struct based on type. When I try to insert this into my test I get ā
** (RuntimeError) Elixir.PolymorphicEmbed must not be casted using Ecto.Changeset.cast/4, use Elixir.PolymorphicEmbed.cast_polymorphic_embed/2 instead.
What is the best approach to test data like this?