Skip to content

Draft: Test upgrade to Rails 7.1

Heinrich Lee Yu requested to merge hly-rails-7-1 into master

What does this MR do and why?

Add ActiveRecord::Enum patch

It removes newly introduced check that doesn't allow defining an enum without backed column.

A migration job fails because it:

  • Performs database migration on a particular version
  • The version does not contain email_confirmation_setting column
  • Performs another migration that initializes Rails env
  • Initializers call Gitlab::CurrentSetting
  • ApplicationSetting tries to define email_confirmation_setting enum
  • Fails because the enum is not backed by a column

MR acceptance checklist

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

Screenshots or screen recordings

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

Before After

How to set up and validate locally

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

Merge request reports