TLDR; If the thing exists, use put_assoc. If you’re creating it, use cast_assoc.
Ecto has two nifty methods for working with associated records in a changeset.