I considered adding AI to the title to buzz even more, but I refrained.

According to https://mcfunley.com/choose-boring-technology you have a quota on how many new things you can try at once in a project. This demo has as much respect for quotas as a Russian fishing vessel, and has nothing but non-boring tech. Naturally, this can make the point of this blag a bit hard to grasp, so to be precise.

My main goal is to:


Sorry for necroing, but i would probably solve this by writing directly to the many-to-many table

%MyApp.Context.UserCompanies{}

|> MyApp.Contex.UserCompanies.changeset(%{company_id: exsisting_company_id, user_id: existing_user_id})

|> MyApp.Repo.insert!

Is there any reason this won't work?

Aksel Stadler Kjetså

A norwegian SW-dev with a MSc in mathematics/robotics. I’m working at Dignio , a remote care startup. My greatest achievement is taking 23 consecutive pull ups.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store