Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit30223a1

Browse files
committed
fix: raise whenall_tenants/0 default impl is called
1 parent20a548d commit30223a1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

‎lib/repo.ex‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,19 @@ defmodule AshPostgres.Repo do
4545
definstalled_extensions,do:[]
4646
deftenant_migrations_path,do:nil
4747
defmigrations_path,do:nil
48-
defall_tenants,do:[]
48+
49+
defall_tenantsdo
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+
def all_tenants do
55+
for org <- MyApp.Accounts.all_organizations!() do
56+
org.schema
57+
end
58+
end
59+
"""
60+
end
4961

5062
definit(_,config)do
5163
new_config=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp