Some time ago I had to tackle the migration of an application with a regular database to a multi-tenancy one, and I would like to share my experience here. Despite the existence of libraries like apartmentex, triplex or tenantex, I wanted to make the migration as dependency free as possible, so I made my own management for the multi-tenancy. Understanding Ecto prefix option Most of the methods pro
![A dive into database multi-tenancy in Elixir with Ecto - Dreamingechoes](https://cdn-ak-scissors.b.st-hatena.com/image/square/0e9a4491c2ead7cee85593de5e47dee88b80c73c/height=288;version=1;width=512/http%3A%2F%2Fdreamingecho.es%2Fsystem%2Fseo_infos%2Fimages%2F000%2F000%2F038%2Foriginal%2Fmulti_tenancy_ecto.png%3F1529935887)