Commit d56c3782 authored by Stan Hu's avatar Stan Hu

Use self.ignored_columns += instead of =

This is to accomodate prepended modules.
parent 0832c91f
...@@ -32,13 +32,13 @@ class ApplicationSetting < ApplicationRecord ...@@ -32,13 +32,13 @@ class ApplicationSetting < ApplicationRecord
serialize :asset_proxy_whitelist, Array # rubocop:disable Cop/ActiveRecordSerialize serialize :asset_proxy_whitelist, Array # rubocop:disable Cop/ActiveRecordSerialize
self.ignored_columns += %i[ self.ignored_columns += %i[
clientside_sentry_dsn clientside_sentry_dsn
clientside_sentry_enabled clientside_sentry_enabled
koding_enabled koding_enabled
koding_url koding_url
sentry_dsn sentry_dsn
sentry_enabled 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
......
...@@ -18,13 +18,13 @@ module Ci ...@@ -18,13 +18,13 @@ module Ci
BuildArchivedError = Class.new(StandardError) BuildArchivedError = Class.new(StandardError)
self.ignored_columns += %i[ self.ignored_columns += %i[
artifacts_file artifacts_file
artifacts_file_store artifacts_file_store
artifacts_metadata artifacts_metadata
artifacts_metadata_store artifacts_metadata_store
artifacts_size artifacts_size
commands commands
] ]
belongs_to :project, inverse_of: :builds belongs_to :project, inverse_of: :builds
belongs_to :runner belongs_to :runner
......
...@@ -24,10 +24,10 @@ class User < ApplicationRecord ...@@ -24,10 +24,10 @@ class User < ApplicationRecord
DEFAULT_NOTIFICATION_LEVEL = :participating DEFAULT_NOTIFICATION_LEVEL = :participating
self.ignored_columns += %i[ self.ignored_columns += %i[
authentication_token authentication_token
email_provider email_provider
external_email 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
......
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