Embed a struct in a virtual field

If I’m not mistaken, you can still use an embedded_schema without saving it to the database. Just don’t cast the field nor make it required when you generate changesets.

I had a similar problem this week, you might want to take a look at this topic:

3 Likes