Skip to content

Commit

Permalink
fix: don't use priv configuration for snapshot_path
Browse files Browse the repository at this point in the history
fixes #432
  • Loading branch information
zachdaniel committed Dec 3, 2024
1 parent 26291dd commit 28f863c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/migration_generator/migration_generator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,13 @@ defmodule AshPostgres.MigrationGenerator do
if snapshot_path = config[:snapshots_path] do
snapshot_path
else
priv =
config[:priv] || "priv/"
priv = "priv/"

app = Keyword.fetch!(config, :otp_app)

Application.app_dir(
app,
Path.join([
priv,
"resource_snapshots"
])
["priv", "resource_snapshots"]
)
end
end
Expand Down

0 comments on commit 28f863c

Please sign in to comment.