mix drops.relation.install (drops_relation v0.1.0)
View SourceInstalls Drops.Relation in your project by updating mix.exs aliases.
This task automatically adds the drops.relation.refresh_cache task to your
Ecto aliases to ensure the Drops.Relation cache is refreshed whenever you
run migrations, rollbacks, or load database dumps.
Usage
mix drops.relation.installWhat it does
This task will update your mix.exs file to add the following aliases:
"ecto.migrate": ["ecto.migrate", "drops.relation.refresh_cache"]"ecto.rollback": ["ecto.rollback", "drops.relation.refresh_cache"]"ecto.load": ["ecto.load", "drops.relation.refresh_cache"]
If these aliases already exist, they will be updated to include the cache refresh task. If they don't exist, they will be created.
Notes
- This task uses Igniter to safely modify your mix.exs file
- Existing aliases will be preserved and extended
- The task is idempotent - running it multiple times is safe