Files
ubicloud/migrate/20231125_runner_job_data.rb
Enes Cakir 96efe9907d Add migration file to add workflow_job column to runner
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.
2023-11-25 14:01:27 +03:00

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