We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
all_tenants/0
1 parent 20a548d commit 30223a1Copy full SHA for 30223a1
lib/repo.ex
@@ -45,7 +45,19 @@ defmodule AshPostgres.Repo do
45
def installed_extensions, do: []
46
def tenant_migrations_path, do: nil
47
def migrations_path, do: nil
48
- def all_tenants, do: []
+
49
+ def all_tenants do
50
+ raise """
51
+ `#{inspect(__MODULE__)}.all_tenants/0` was called, but was not defined. In order to migrate tenants, you must define this function.
52
+ For example, you might say:
53
54
55
+ for org <- MyApp.Accounts.all_organizations!() do
56
+ org.schema
57
+ end
58
59
+ """
60
61
62
def init(_, config) do
63
new_config =
0 commit comments