The GithubRunner model retains information about its assigned workflow_job, which is displayed in the UI. This data also proves useful when investigating incidents. Previously, we didn't store the job's status and conclusion, despite needing them on several occasions. We need to do lots of API calls to fetch this information. I have decided to persist these as well. However, adding numerous columns about the job to the runner model didn't seem appropriate. Hence, I decided to consolidate all workflow-related data into the workflow_job column.
10 lines
155 B
Ruby
10 lines
155 B
Ruby
# frozen_string_literal: true
|
|
|
|
Sequel.migration do
|
|
change do
|
|
alter_table(:github_runner) do
|
|
add_column :workflow_job, :jsonb
|
|
end
|
|
end
|
|
end
|