mix mailglass.inbound.gen.migration (MailglassInbound v2.0.0)

Copy Markdown View Source

Generates the 8-line wrapper migration file in priv/repo/migrations/ that delegates up/0 and down/0 to MailglassInbound.Migration.

Run once in the host application after adding :mailglass_inbound as a dependency; idempotent (re-running is safe).

mix mailglass.inbound.gen.migration

The generated file looks like:

defmodule MyApp.Repo.Migrations.MailglassInboundInstall do
  use Ecto.Migration
  def up, do: MailglassInbound.Migration.up()
  def down, do: MailglassInbound.Migration.down()
end

The wrapper stays stable across mailglass_inbound versions. Per-version DDL lives in MailglassInbound.Migrations.Postgres.VNN modules dispatched by the runner; the wrapper never needs updating as mailglass_inbound evolves.