Ecto.AutoMigrator behaviour (ecto_auto_migrator v1.2.0)

Link to this section Summary

Link to this section Callbacks

Specs

create!(any()) :: :ok
Link to this callback

create_repo(atom, any)

Specs

create_repo(atom(), any()) :: :ok | {:error, any()}

Specs

load_app() :: :ok | {:error, any()}

Specs

migrate!(any()) :: :ok
Link to this callback

migrate_repo(atom, any)

Specs

migrate_repo(atom(), any()) :: :ok | {:error, any()}
Link to this callback

recreate_repo(atom, any)

Specs

recreate_repo(atom(), any()) :: :ok | {:error, any()}

Specs

repos(any()) :: [atom()]
Link to this callback

rollback(atom, any)

Specs

rollback(atom(), any()) :: {:ok, any(), any()} | {:error, any()}
Link to this callback

run_migrations?()

Specs

run_migrations?() :: boolean()