Skip to content

Draft: Execute change_column_default as a regular migration

Marius Bobin requested to merge mb-document-postdeploy-default-value-change into master

What does this MR do and why?

This can not be safely executed as a post deployment migration because ActiveRecord caches column attriibutes and does not send them to the database when persisting records even if they are set explicitly to the default value.

See gitlab-com/gl-infra/production#8204 (closed)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Marius Bobin

Merge request reports