What do you mean by multiple databases? Separate the schemas in multiple separated databases?
If so, you would have to have one Ecto.Repo for each database. And in this case, every method in triplex that executes something on your database receives an optional parameter for the repo at the end. If this parameter is omitted, it will get the repo from what’s configured with config :triplex, repo: MyApp.Repo.
As for migrations, @mgiacomini answer is totally right, we use what’s configured in config MyApp, ecto_repos: [MyApp.Repo], so migrations run by default on every repo listed in this configuration.






















