Hi guys, so I’m following tutorials in the book “Programming Phoenix ≥ 1.4” (yes, I got the latest version cause the older one was just too hard to follow).
Under chapter 4 “Ecto and Changesets” everything works fine until I issue the command
mix ecto.gen.migration create_users. The migration code i.e.
change function is just empty.
I checked the folders and user.ex is under the folder lib/rumbl/accounts and it looks like this
defmodule Rumbl.Accounts.User do use Ecto.Schema import Ecto.Changeset schema "users" do field :name, :string field :username, :string timestamps() end end
It’s probably a newbie question but after a couple of hours trying and re-trying, I couldn’t figure out the issue.