Skip to content

Commit d0bc394

Browse files
authored
fix: Actually use AshPostgres.Repo behaviour (#129)
1 parent 82ae1d8 commit d0bc394

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/repo.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ defmodule AshPostgres.Repo do
5252
@doc "Return a list of all schema names (only relevant for a multitenant implementation)"
5353
@callback all_tenants() :: [String.t()]
5454
@doc "The path where your tenant migrations are stored (only relevant for a multitenant implementation)"
55-
@callback tenant_migrations_path() :: String.t()
55+
@callback tenant_migrations_path() :: String.t() | nil
5656
@doc "The path where your migrations are stored"
57-
@callback migrations_path() :: String.t()
57+
@callback migrations_path() :: String.t() | nil
5858
@doc "The default prefix(postgres schema) to use when building queries"
5959
@callback default_prefix() :: String.t()
6060
@doc "Allows overriding a given migration type for *all* fields, for example if you wanted to always use :timestamptz for :utc_datetime fields"
@@ -68,6 +68,8 @@ defmodule AshPostgres.Repo do
6868
adapter: Ecto.Adapters.Postgres,
6969
otp_app: otp_app
7070

71+
@behaviour AshPostgres.Repo
72+
7173
defoverridable insert: 2, insert: 1, insert!: 2, insert!: 1
7274

7375
def installed_extensions, do: []

0 commit comments

Comments
 (0)