mix audit_trail. gen. migration
(audit_trail v0.1.1)
Copy Markdown
Generates an Ecto migration for the audit_logs table.
The generated migration is tailored to whichever storage adapter is configured in your application:
AuditTrail.Adapters.Postgres→ standard Postgres table + indexesAuditTrail.Adapters.TimescaleDB→ same table +create_hypertablecall
Usage
mix audit_trail.gen.migrationOptions:
--repo MyApp.Repo Ecto repo to target (default: auto-detected from config)
--migrations-path PATH Where to write the file (default: priv/repo/migrations)After generating, run:
mix ecto.migrate