From 9a14cedc149ce8d7243a109c956b3de6eb087415 Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 2 Jun 2026 12:26:35 +0200 Subject: [PATCH] fix(repo): define all_tenants/0 as empty for non-multitenant schema --- lib/mv/repo.ex | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/mv/repo.ex b/lib/mv/repo.ex index 0a4a04d..183c54f 100644 --- a/lib/mv/repo.ex +++ b/lib/mv/repo.ex @@ -19,4 +19,12 @@ defmodule Mv.Repo do def min_pg_version do %Version{major: 17, minor: 2, patch: 0} end + + # This app does not use schema-based multitenancy, so there are no tenant + # schemas to migrate. Returning [] keeps the AshPostgres callback total + # rather than raising the default "not defined" error. + @impl true + def all_tenants do + [] + end end