mix double_entry_ledger.install (double_entry_ledger v0.2.0)

View Source

Generates a migration file for the DoubleEntryLedger package.

mix double_entry_ledger.install

Options

  • --from N - Generate an upgrade migration from version N instead of a fresh install. Use this if you already have DoubleEntryLedger tables from copied migration files (e.g., v0.1.0 = version 1).

Examples

# Fresh install (all versions)
mix double_entry_ledger.install

# Upgrade from v0.1.0 (apply only version 2 changes)
mix double_entry_ledger.install --from 1

Oban

This task does not generate an Oban migration. The package uses your application's existing Oban setup. Ensure Oban is installed and configured in your application, and add the double_entry_ledger queue to your Oban config. See the README for details.