mix durable.gen.migration (Durable v0.1.0-rc)

View Source

Generates a new Durable internal migration.

This is for Durable library developers only, not end users. Host applications should use mix durable.gen.upgrade instead.

$ mix durable.gen.migration add_compensation_tracking

The generated migration will be created at:

lib/durable/migration/migrations/v{timestamp}_{name}.ex

Examples

$ mix durable.gen.migration add_workflow_metadata
$ mix durable.gen.migration add_retry_count

After generating a migration, you must:

  1. Implement the up/1 and down/1 callbacks
  2. Add the migration module to @migrations in lib/durable/migration/migrator.ex