ecto-release-migrations
Installation
SKILL.md
Ecto Release Migrations Setup
Overview
In Elixir releases, Mix is not available. This skill creates a Release module that handles database creation, migration, and rollback via bin/app_name eval commands.
Workflow
-
Detect app name and repos
- Check
mix.exsfor app name - Check
config/config.exsorconfig/runtime.exsfor Ecto repos
- Check
-
Create Release module
- Location:
lib/<app_name>/release.ex - Must handle multiple repos if present
- Location:
-
Verify config
- Ensure
config/runtime.exshas production database config - Check for
DATABASE_URLor explicit config
- Ensure