Svelixir.Inline.Migration (svelixir v0.2.0)

Copy Markdown

Inline base Ecto.Migration wrapper template and its citext bootstrap migration.

Summary

Functions

Renders {Module}.Migration -- use it for the enable_citext/0 convention.

Renders the bootstrap {Repo}.Migrations.EnableExtensions migration.

Functions

base_template(migration_module)

@spec base_template(module()) :: String.t()

Renders {Module}.Migration -- use it for the enable_citext/0 convention.

enable_extensions_template(repo_module, migration_module)

@spec enable_extensions_template(module(), module()) :: String.t()

Renders the bootstrap {Repo}.Migrations.EnableExtensions migration.