Remove ignored_columns for columns removed in pre-4.2.0 migrations (#39237)
This commit is contained in:
parent
4d54d9867e
commit
89d9fc8889
@ -63,15 +63,7 @@
|
||||
#
|
||||
|
||||
class Account < ApplicationRecord
|
||||
self.ignored_columns += %w(
|
||||
devices_url
|
||||
hub_url
|
||||
remote_url
|
||||
salmon_url
|
||||
secret
|
||||
subscription_expires_at
|
||||
trust_level
|
||||
)
|
||||
self.ignored_columns += %w(devices_url)
|
||||
|
||||
BACKGROUND_REFRESH_INTERVAL = 1.week.freeze
|
||||
REFRESH_DEADLINE = 6.hours
|
||||
|
||||
@ -16,7 +16,6 @@
|
||||
|
||||
class AccountStat < ApplicationRecord
|
||||
self.locking_column = nil
|
||||
self.ignored_columns += %w(lock_version)
|
||||
|
||||
belongs_to :account, inverse_of: :account_stat
|
||||
|
||||
|
||||
@ -17,10 +17,6 @@
|
||||
#
|
||||
|
||||
class Admin::ActionLog < ApplicationRecord
|
||||
self.ignored_columns += %w(
|
||||
recorded_changes
|
||||
)
|
||||
|
||||
belongs_to :account
|
||||
belongs_to :target, polymorphic: true, optional: true
|
||||
|
||||
|
||||
@ -13,11 +13,6 @@
|
||||
#
|
||||
|
||||
class EmailDomainBlock < ApplicationRecord
|
||||
self.ignored_columns += %w(
|
||||
ips
|
||||
last_refresh_at
|
||||
)
|
||||
|
||||
include DomainNormalizable
|
||||
include Paginable
|
||||
|
||||
|
||||
@ -22,8 +22,6 @@
|
||||
#
|
||||
|
||||
class Report < ApplicationRecord
|
||||
self.ignored_columns += %w(action_taken)
|
||||
|
||||
include Paginable
|
||||
include RateLimitable
|
||||
|
||||
|
||||
@ -21,10 +21,6 @@
|
||||
class StatusEdit < ApplicationRecord
|
||||
include RateLimitable
|
||||
|
||||
self.ignored_columns += %w(
|
||||
media_attachments_changed
|
||||
)
|
||||
|
||||
class PreservedMediaAttachment < ActiveModelSerializers::Model
|
||||
attributes :media_attachment, :description
|
||||
|
||||
|
||||
@ -44,15 +44,10 @@
|
||||
class User < ApplicationRecord
|
||||
self.ignored_columns += %w(
|
||||
admin
|
||||
current_sign_in_ip
|
||||
encrypted_otp_secret
|
||||
encrypted_otp_secret_iv
|
||||
encrypted_otp_secret_salt
|
||||
filtered_languages
|
||||
last_sign_in_ip
|
||||
moderator
|
||||
remember_created_at
|
||||
remember_token
|
||||
skip_sign_in_token
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user