defmodule <%= base %>.Repo.Migrations.CreateUser do use Ecto.Migration def change do create table(:users) do add :username, :string add :email, :string add :password_hash, :string<%= if confirm do %> add :confirmed_at, :datetime add :confirmation_token, :string add :confirmation_sent_at, :datetime add :reset_token, :string add :reset_sent_at, :datetime<% end %> timestamps() end create unique_index :users, [:username] end end