Ecto.Migrator.with_repo/2 was introduced in ecto_sql v3.1.2, maybe you have an older version.
Take a look at your mix.lock.
I am using those dependencies:
defp deps do [ {:phoenix, "~> 1.3.4"}, {:phoenix_pubsub, "~> 1.0"}, {:phoenix_ecto, "~> 3.2"}, {:postgrex, ">= 0.0.0"}, {:phoenix_html, "~> 2.10"}, {:phoenix_live_reload, "~> 1.0", only: :dev}, {:gettext, "~> 0.11"}, {:plug_cowboy, "~> 1.0"}, {:comeonin, "~> 4.0"}, {:bcrypt_elixir, "~> 1.0"}, {:guardian, "~> 1.0"}, {:number, "~> 1.0.1"} ] end
And the error is occurring too. Any idea?
grep ecto_sql mix.lock
ecto_sql version has to be at least 3.1.2, eg:
"ecto_sql": {:hex, :ecto_sql, "3.1.5", ... ^^^^^
Yes that was a problem. Thank you
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Ecto.Migrator.with_repo/2 was introduced in ecto_sql v3.1.2, maybe you have an older version.
Take a look at your mix.lock.
I am using those dependencies:
defp deps do
[
{:phoenix, "~> 1.3.4"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_ecto, "~> 3.2"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 2.10"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.11"},
{:plug_cowboy, "~> 1.0"},
{:comeonin, "~> 4.0"},
{:bcrypt_elixir, "~> 1.0"},
{:guardian, "~> 1.0"},
{:number, "~> 1.0.1"}
]
end
And the error is occurring too.
Any idea?
ecto_sql version has to be at least 3.1.2, eg:
Yes that was a problem. Thank you