mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-12 15:25:49 -05:00
Remove ignored_columns for 4.3 and earlier (#40359)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -15,8 +15,6 @@
|
||||
#
|
||||
|
||||
class CustomFilter < ApplicationRecord
|
||||
self.ignored_columns += %w(whole_word irreversible)
|
||||
|
||||
alias_attribute :title, :phrase
|
||||
alias_attribute :filter_action, :action
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -14,8 +14,6 @@
|
||||
#
|
||||
|
||||
class NotificationRequest < ApplicationRecord
|
||||
self.ignored_columns += %w(dismissed)
|
||||
|
||||
include Paginable
|
||||
|
||||
MAX_MEANINGFUL_COUNT = 100
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user