Skip to content

Commit 466cd19

Browse files
authored
Update migrator error messaging with note regarding MIX_ENV (#488)
1 parent 602815d commit 466cd19

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

lib/ecto/migrator.ex

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,11 +687,12 @@ defmodule Ecto.Migrator do
687687
* There is a deadlock while migrating (such as using concurrent
688688
indexes with a migration_lock)
689689
690-
To fix the first issue, run "mix ecto.create".
690+
To fix the first issue, run "mix ecto.create" for the desired MIX_ENV.
691691
692692
To address the second, you can run "mix ecto.drop" followed by
693-
"mix ecto.create". Alternatively you may configure Ecto to use
694-
another table and/or repository for managing migrations:
693+
"mix ecto.create", both for the desired MIX_ENV. Alternatively you may
694+
configure Ecto to use another table and/or repository for managing
695+
migrations:
695696
696697
config #{inspect repo.config[:otp_app]}, #{inspect repo},
697698
migration_source: "some_other_table_for_schema_migrations",

0 commit comments

Comments
 (0)