mix chimeway.gen.migrations (chimeway v1.1.1)

Copy Markdown View Source

Copy Chimeway migration templates into the host priv/repo/migrations.

Generates Chimeway schema migrations in the host repo.

Usage

mix chimeway.gen.migrations
mix chimeway.gen.migrations --prefix chimeway
mix chimeway.gen.migrations --prefix public

Copies 31 migration templates from priv/chimeway_migrations/ (Oban excluded). See guides/recipes/oban-integration.md for Oban setup (D-10).

Re-running is idempotent — existing slugs print unchanged.

Umbrella apps

Repo inference reads app: from the current directory's mix.exs. Umbrella roots declare apps_path and host repos live in child apps, so inference from the root is unreliable. Set an explicit repo in config before running from an umbrella root:

config :chimeway, repo: MyApp.Repo

Or run the task from the child app directory that owns the repo.