SignificaUtils.EctoReleaseTasks
(significa_utils v0.0.1-main-72a387d58ff1307364683940dbea968462c39c1d-1)
View Source
Utility 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)`.