SignificaUtils.EctoReleaseTasks (significa_utils v0.0.1-main-a68c9941c5d644aa896c6919c6ccfc2aa420ea48)
View SourceUtility function to create release common tasks used in Ecto projects.
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)`.