Remove ignored_columns for 4.3 and earlier (#40359)

This commit is contained in:
Claire
2026-09-02 14:35:59 +00:00
committed by GitHub
parent 4fb6ada211
commit 379542d59c
6 changed files with 0 additions and 19 deletions

View File

@@ -64,8 +64,6 @@
#
class Account < ApplicationRecord
self.ignored_columns += %w(devices_url)
BACKGROUND_REFRESH_INTERVAL = 1.week.freeze
REFRESH_DEADLINE = 6.hours
STALE_THRESHOLD = 1.day

View File

@@ -14,10 +14,6 @@
# relationship_severance_event_id :bigint(8) not null
#
class AccountRelationshipSeveranceEvent < ApplicationRecord
self.ignored_columns += %w(
relationships_count
)
belongs_to :account
belongs_to :relationship_severance_event

View File

@@ -15,8 +15,6 @@
#
class CustomFilter < ApplicationRecord
self.ignored_columns += %w(whole_word irreversible)
alias_attribute :title, :phrase
alias_attribute :filter_action, :action

View File

@@ -17,13 +17,6 @@
#
class NotificationPolicy < ApplicationRecord
self.ignored_columns += %w(
filter_not_following
filter_not_followers
filter_new_accounts
filter_private_mentions
)
belongs_to :account
has_many :notification_requests, primary_key: :account_id, foreign_key: :account_id, dependent: nil, inverse_of: false

View File

@@ -14,8 +14,6 @@
#
class NotificationRequest < ApplicationRecord
self.ignored_columns += %w(dismissed)
include Paginable
MAX_MEANINGFUL_COUNT = 100

View File

@@ -43,11 +43,9 @@
class User < ApplicationRecord
self.ignored_columns += %w(
admin
encrypted_otp_secret
encrypted_otp_secret_iv
encrypted_otp_secret_salt
moderator
skip_sign_in_token
)