Ecto.Enum in Polymorphic Embed

Just noticed your question relating to polymorphic_embed. Simply using @types should work:

field :nodes, {:array, PolymorphicEmbed}, types: @types, on_replace: :delete