Skip to content

Commit ae02353

Browse files
committed
Add explicit parens to repo.config call in migration guide
1 parent 65328cb commit ae02353

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guides/running_migrations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ defmodule MyApp.ReleaseTasks do
6969
end
7070

7171
defp run_migrations_for(repo) do
72-
app = Keyword.get(repo.config, :otp_app)
72+
app = Keyword.get(repo.config(), :otp_app)
7373
IO.puts("Running migrations for #{app}")
7474
migrations_path = priv_path_for(repo, "migrations")
7575
Ecto.Migrator.run(repo, migrations_path, :up, all: true)
@@ -90,7 +90,7 @@ defmodule MyApp.ReleaseTasks do
9090
end
9191

9292
defp priv_path_for(repo, filename) do
93-
app = Keyword.get(repo.config, :otp_app)
93+
app = Keyword.get(repo.config(), :otp_app)
9494

9595
repo_underscore =
9696
repo

0 commit comments

Comments
 (0)