I have this code in priv/repo/seeds.exs and run it with mix run priv/repo/seeds.exs :
TestApp.Accounts.User.changeset(%TestApp.Accounts.User{}, %{username: "ben"})
|> TestApp.Repo.insert()
I have also tried the same in an iex prompt started with iex -S mix with identical results. A unit test for the Accounts module also yields the same error.


















