mix threadline.install (Threadline v0.2.0)

Copy Markdown View Source

Generates an Ecto migration file for the Threadline audit schema.

Usage

mix threadline.install

The generated migration creates the audit_transactions and audit_changes tables plus the threadline_capture_changes() PL/pgSQL trigger function.

Run mix ecto.migrate after generation to apply the migration.

Running the task a second time prints a warning and exits without overwriting.