mix durable.gen.migration (Durable v0.1.0-rc)
View SourceGenerates 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}.exExamples
$ mix durable.gen.migration add_workflow_metadata
$ mix durable.gen.migration add_retry_count
After generating a migration, you must:
- Implement the
up/1anddown/1callbacks - Add the migration module to
@migrationsinlib/durable/migration/migrator.ex