Commit 6cf60b77 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'remove-old-ignore-column-ee' into 'master'

Remove some old `ignore_column` in AR models

See merge request gitlab-org/gitlab-ee!14764
parents cd625043 5bf855cb
...@@ -31,15 +31,6 @@ class ApplicationSetting < ApplicationRecord ...@@ -31,15 +31,6 @@ class ApplicationSetting < ApplicationRecord
serialize :repository_storages # rubocop:disable Cop/ActiveRecordSerialize serialize :repository_storages # rubocop:disable Cop/ActiveRecordSerialize
serialize :asset_proxy_whitelist, Array # rubocop:disable Cop/ActiveRecordSerialize serialize :asset_proxy_whitelist, Array # rubocop:disable Cop/ActiveRecordSerialize
self.ignored_columns += %i[
clientside_sentry_dsn
clientside_sentry_enabled
koding_enabled
koding_url
sentry_dsn
sentry_enabled
]
cache_markdown_field :sign_in_text cache_markdown_field :sign_in_text
cache_markdown_field :help_page_text cache_markdown_field :help_page_text
cache_markdown_field :shared_runners_text, pipeline: :plain_markdown cache_markdown_field :shared_runners_text, pipeline: :plain_markdown
......
...@@ -33,8 +33,6 @@ class Note < ApplicationRecord ...@@ -33,8 +33,6 @@ class Note < ApplicationRecord
end end
end end
self.ignored_columns += %i[original_discussion_id]
cache_markdown_field :note, pipeline: :note, issuable_state_filter_enabled: true cache_markdown_field :note, pipeline: :note, issuable_state_filter_enabled: true
redact_field :note redact_field :note
......
# frozen_string_literal: true # frozen_string_literal: true
class NotificationSetting < ApplicationRecord class NotificationSetting < ApplicationRecord
self.ignored_columns += %i[events]
enum level: { global: 3, watch: 2, participating: 1, mention: 4, disabled: 0, custom: 5 } enum level: { global: 3, watch: 2, participating: 1, mention: 4, disabled: 0, custom: 5 }
default_value_for :level, NotificationSetting.levels[:global] default_value_for :level, NotificationSetting.levels[:global]
......
...@@ -23,12 +23,6 @@ class User < ApplicationRecord ...@@ -23,12 +23,6 @@ class User < ApplicationRecord
DEFAULT_NOTIFICATION_LEVEL = :participating DEFAULT_NOTIFICATION_LEVEL = :participating
self.ignored_columns += %i[
authentication_token
email_provider
external_email
]
add_authentication_token_field :incoming_email_token, token_generator: -> { SecureRandom.hex.to_i(16).to_s(36) } add_authentication_token_field :incoming_email_token, token_generator: -> { SecureRandom.hex.to_i(16).to_s(36) }
add_authentication_token_field :feed_token add_authentication_token_field :feed_token
......
...@@ -14,8 +14,6 @@ module EE ...@@ -14,8 +14,6 @@ module EE
belongs_to :file_template_project, class_name: "Project" belongs_to :file_template_project, class_name: "Project"
self.ignored_columns += %i[minimum_mirror_sync_time]
validates :shared_runners_minutes, validates :shared_runners_minutes,
numericality: { greater_than_or_equal_to: 0 } numericality: { greater_than_or_equal_to: 0 }
......
...@@ -24,7 +24,6 @@ module EE ...@@ -24,7 +24,6 @@ module EE
self.ignored_columns += %i[ self.ignored_columns += %i[
mirror_last_update_at mirror_last_update_at
mirror_last_successful_update_at mirror_last_successful_update_at
next_execution_timestamp
] ]
before_save :set_override_pull_mirror_available, unless: -> { ::Gitlab::CurrentSettings.mirror_available } before_save :set_override_pull_mirror_available, unless: -> { ::Gitlab::CurrentSettings.mirror_available }
......
...@@ -6,8 +6,6 @@ module EE ...@@ -6,8 +6,6 @@ module EE
extend ::Gitlab::Utils::Override extend ::Gitlab::Utils::Override
prepended do prepended do
self.ignored_columns += %i[created_at updated_at]
BACKOFF_PERIOD = 24.seconds BACKOFF_PERIOD = 24.seconds
JITTER = 6.seconds JITTER = 6.seconds
......
...@@ -18,8 +18,6 @@ module EE ...@@ -18,8 +18,6 @@ module EE
prepended do prepended do
EMAIL_OPT_IN_SOURCE_ID_GITLAB_COM = 1 EMAIL_OPT_IN_SOURCE_ID_GITLAB_COM = 1
self.ignored_columns += %i[support_bot]
# We aren't using the `auditor?` method for the `if` condition here # We aren't using the `auditor?` method for the `if` condition here
# because `auditor?` returns `false` when the `auditor` column is `true` # because `auditor?` returns `false` when the `auditor` column is `true`
# and the auditor add-on absent. We want to run this validation # and the auditor add-on absent. We want to run this validation
......
...@@ -3,8 +3,6 @@ ...@@ -3,8 +3,6 @@
class ProjectRepositoryState < ApplicationRecord class ProjectRepositoryState < ApplicationRecord
include ShaAttribute include ShaAttribute
self.ignored_columns += %i[last_repository_verification_failed last_wiki_verification_failed]
sha_attribute :repository_verification_checksum sha_attribute :repository_verification_checksum
sha_attribute :wiki_verification_checksum sha_attribute :wiki_verification_checksum
......
...@@ -40,7 +40,7 @@ describe Ci::RetryBuildService do ...@@ -40,7 +40,7 @@ describe Ci::RetryBuildService do
user_id auto_canceled_by_id retried failure_reason user_id auto_canceled_by_id retried failure_reason
sourced_pipelines artifacts_file_store artifacts_metadata_store sourced_pipelines artifacts_file_store artifacts_metadata_store
metadata runner_session trace_chunks upstream_pipeline_id metadata runner_session trace_chunks upstream_pipeline_id
artifacts_file artifacts_metadata artifacts_size].freeze artifacts_file artifacts_metadata artifacts_size commands].freeze
shared_examples 'build duplication' do shared_examples 'build duplication' do
let(:another_pipeline) { create(:ci_empty_pipeline, project: project) } let(:another_pipeline) { create(:ci_empty_pipeline, project: project) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment