Skip to content

Commit be48da9

Browse files
authored
fix: retain repo as atom in migrator task (#560)
1 parent ea9d09c commit be48da9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lib/mix/tasks/ash_postgres.migrate.ex

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,9 @@ defmodule Mix.Tasks.AshPostgres.Migrate do
130130
for tenant <- tenants(repo, opts) do
131131
rest_opts = AshPostgres.Mix.Helpers.delete_arg(rest_opts, "--prefix")
132132

133-
repo =
134-
if is_atom(repo) do
135-
inspect(repo)
136-
else
137-
repo
138-
end
139-
140133
Mix.Task.run(
141134
"ecto.migrate",
142-
["-r", repo] ++
135+
["-r", to_string(repo)] ++
143136
rest_opts ++
144137
["--prefix", tenant, "--migrations-path", tenant_migrations_path(opts, repo)]
145138
)

0 commit comments

Comments
 (0)