mix coelho.gen.migration (coelho v0.2.0)

Copy Markdown View Source

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