View Source mix pow.ecto.gen.migration (Pow v1.0.36)

Generates a user migration file.

mix pow.ecto.gen.migration -r MyApp.Repo

mix pow.ecto.gen.migration -r MyApp.Repo Accounts.Account accounts

This generator will add a migration file in priv/repo/migrations for the users table

Arguments

  • -r, --repo - the repo module
  • --binary-id - use binary id for primary key