Class: AddArtifactsToNexoWorkflowRuns
- Inherits:
-
Object
- Object
- AddArtifactsToNexoWorkflowRuns
- Defined in:
- lib/generators/nexo/artifacts/templates/add_artifacts_to_nexo_workflow_runs.rb
Overview
Additive migration for apps installed before Spec 7 (fresh installs get the column from create_nexo_workflow_runs directly). Portable json column, default [], matching the events column shape.
Instance Method Summary collapse
-
#change ⇒ Object
Adds the
artifactsjson column (default[]) tonexo_workflow_runs.
Instance Method Details
#change ⇒ Object
Adds the artifacts json column (default []) to nexo_workflow_runs.
8 9 10 |
# File 'lib/generators/nexo/artifacts/templates/add_artifacts_to_nexo_workflow_runs.rb', line 8 def change add_column :nexo_workflow_runs, :artifacts, :json, null: false, default: [] end |