How to insert data, if 3 schemas associate among them with many to many relationship?

I get 3 schemas Movie, Actor and Role associate among them with many to many relationship. How to insert data in intermediate table?

Hi @juanm1901 I would simply construct the records manually and Repo.insert! or Repo.insert_all them. What have you tried so far?