Skip to content

Commit

Permalink
chore: get build passing
Browse files Browse the repository at this point in the history
fix: properly delete args passed from migrate to ecto
  • Loading branch information
zachdaniel committed Jun 24, 2024
1 parent 804a32e commit e520ddf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/mix/tasks/ash_postgres.migrate.ex
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ defmodule Mix.Tasks.AshPostgres.Migrate do
|> AshPostgres.Mix.Helpers.delete_arg("--domains")
|> AshPostgres.Mix.Helpers.delete_arg("--migrations-path")
|> AshPostgres.Mix.Helpers.delete_flag("--tenants")
|> AshPostgres.Mix.Helpers.delete_flag("--only-tenants")
|> AshPostgres.Mix.Helpers.delete_flag("--except-tenants")
|> AshPostgres.Mix.Helpers.delete_arg("--only-tenants")
|> AshPostgres.Mix.Helpers.delete_arg("--except-tenants")

Mix.Task.reenable("ecto.migrate")

Expand Down
6 changes: 1 addition & 5 deletions test/support/test_no_sandbox_repo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ defmodule AshPostgres.TestNoSandboxRepo do
end

def all_tenants do
Code.ensure_compiled(AshPostgres.MultitenancyTest.Org)

AshPostgres.MultitenancyTest.Org
|> Ash.read!()
|> Enum.map(&"org_#{&1.id}")
[]
end
end

0 comments on commit e520ddf

Please sign in to comment.