View Source SignificaUtils.EctoReleaseTasks (significa_utils v0.0.4)

Utility function to create release common tasks used in Ecto projects.

usage

Usage

defmodule SampleProject.ReleaseTasks do
  use SignificaUtils.EctoReleaseTasks,
    otp_app: :sample_app
end

Creates two public functions:

- `migrate/0`: migrates all the repos to the latest version.
- `rollback/2`: rolls back the repo to the specified version - `rollback(repo, version)`.