make the melted medias into a HasMany relation

Signed-off-by: Tomas Neme <lacrymology@gmail.com>