Fast.Repo.Migrator (Fast v0.11.0)

View Source

Runs migrations on startup. Taken from: https://elixirforum.com/t/what-is-your-strategy-for-running-one-off-and-automated-tasks-using-releases-no-mix/27347

Opts:

  • :repo - Required. The repo module to migrate.
  • :migrations_path - Optional. Relative dir containing migrations.

Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

init(opts)

Callback implementation for GenServer.init/1.

migrate!(opts)

start_link(opts)