mix double_entry_ledger.install (double_entry_ledger v0.3.0)
View SourceGenerates a migration file for the DoubleEntryLedger package.
mix double_entry_ledger.installOptions
--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 1Oban
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.