Class: AddChronoForgeErrorLogStepContext
- Inherits:
-
Object
- Object
- AddChronoForgeErrorLogStepContext
- Defined in:
- lib/generators/chrono_forge/templates/add_chrono_forge_error_log_step_context.rb
Overview
Adds step context to error logs so each error can be attributed to the step and attempt it came from — making error logs orderable and correlatable when tailing a workflow, instead of an undifferentiated stream. Both columns are nullable (a workflow-level error has no step), so this is a safe additive change with no table rewrite.
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
9 10 11 12 |
# File 'lib/generators/chrono_forge/templates/add_chrono_forge_error_log_step_context.rb', line 9 def change add_column :chrono_forge_error_logs, :step_name, :string, if_not_exists: true add_column :chrono_forge_error_logs, :attempt, :integer, if_not_exists: true end |