Roman Eisner opened merge request !231554: Add summary column to workflows table at GitLab.org / GitLab

Roman Eisner
2026-04-15T20:24:45Z

What does this MR do and why?

Add summary column to workflows table

Summary column will be used to describe the workflow, or error state if it fails.

Up

❯ bin/rails db:migrate:up:main VERSION=20260415194113
main: == [advisory_lock_connection] object_id: 139600, pg_backend_pid: 91748
main: == 20260415194113 AddSummaryToDuoWorkflowsWorkflows: migrating ================
main: -- add_column(:duo_workflows_workflows, :summary, :text, {:null=>true})
main: -> 0.0028s
main: -- transaction_open?(nil)
main: -> 0.0000s
main: -- transaction_open?(nil)
main: -> 0.0000s
main: -- execute("ALTER TABLE duo_workflows_workflows\nADD CONSTRAINT check_13bb5688db\nCHECK ( char_length(summary) <= 2048 )\nNOT VALID;\n")
main: -> 0.0023s
main: -- execute("SET statement_timeout TO 0")
main: -> 0.0003s
main: -- execute("ALTER TABLE duo_workflows_workflows VALIDATE CONSTRAINT check_13bb5688db;")
main: -> 0.0030s
main: -- execute("RESET statement_timeout")
main: -> 0.0003s
main: == 20260415194113 AddSummaryToDuoWorkflowsWorkflows: migrated (0.0749s) =======

main: == [advisory_lock_connection] object_id: 139600, pg_backend_pid: 91748

Down

❯ bin/rails db:migrate:down:main VERSION=20260415194113
main: == [advisory_lock_connection] object_id: 139580, pg_backend_pid: 91925
main: == 20260415194113 AddSummaryToDuoWorkflowsWorkflows: reverting ================
main: -- remove_column(:duo_workflows_workflows, :summary, {:if_exists=>true})
main: -> 0.0519s
main: == 20260415194113 AddSummaryToDuoWorkflowsWorkflows: reverted (0.0673s) =======

main: == [advisory_lock_connection] object_id: 139580, pg_backend_pid: 91925

References

#594334

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.