Skip to content
代码片段 群组 项目
未验证 提交 d01f1d4d 编辑于 作者: Hordur Freyr Yngvason's avatar Hordur Freyr Yngvason 提交者: GitLab
浏览文件

Merge branch 'bojan/remove-ignore-columns-from-user-preference' into 'master'

No related branches found
No related tags found
无相关合并请求
# frozen_string_literal: true
class UserPreference < MainClusterwide::ApplicationRecord
include IgnorableColumns
# We could use enums, but Rails 4 doesn't support multiple
# enum options with same name for multiple fields, also it creates
# extra methods that aren't really needed here.
......@@ -35,9 +33,6 @@ class UserPreference < MainClusterwide::ApplicationRecord
validate :user_belongs_to_home_organization, if: :home_organization_changed?
# 2023-06-22 is after 16.1 release and during 16.2 release https://docs.gitlab.com/ee/development/database/avoiding_downtime_in_migrations.html#ignoring-the-column-release-m
ignore_columns :use_legacy_web_ide, remove_with: '16.2', remove_after: '2023-06-22'
attribute :tab_width, default: -> { Gitlab::TabWidth::DEFAULT }
attribute :time_display_relative, default: true
attribute :time_display_format, default: 0
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册