Class: AddArtifactsToNexoWorkflowRuns

Inherits:
Object
  • Object
show all
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

Instance Method Details

#changeObject

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