# `mix coelho.gen.migration`
[🔗](https://github.com/nseaSeb/coelho/blob/main/lib/mix/tasks/coelho.gen.migration.ex#L1)

Generates the migration for `Coelho.Attachment`.

    mix coelho.gen.migration

Rich text fields themselves need no generator: `rich_text :body` stores its
document inline, so the column is an ordinary `add :body, :map` in whatever
migration already creates the table. Only attachments need a table of their
own.

## Options

  * `--path` — where to write, `priv/repo/migrations` by default

---

*Consult [api-reference.md](api-reference.md) for complete listing*
