DEV: Remove ignored columns

This commit is contained in:
Gerhard Schlager 2019-01-18 22:49:25 +01:00
parent 8a152566e3
commit e9ec5238fc
8 changed files with 0 additions and 28 deletions

View File

@ -1,13 +1,6 @@
require_dependency 'distributed_mutex'
class EmailLog < ActiveRecord::Base
self.ignored_columns = %w{
topic_id
reply_key
skipped
skipped_reason
}
CRITICAL_EMAIL_TYPES ||= Set.new %w{
account_created
admin_login

View File

@ -10,9 +10,6 @@ require 'archetype'
require 'digest/sha1'
class Post < ActiveRecord::Base
# TODO: Remove this after 19th Dec 2018
self.ignored_columns = %w{vote_count}
include RateLimiter::OnCreateRecord
include Trashable
include Searchable

View File

@ -7,8 +7,6 @@ require_dependency 'theme_translation_parser'
require_dependency 'theme_translation_manager'
class Theme < ActiveRecord::Base
# TODO: remove in 2019
self.ignored_columns = ["key"]
@cache = DistributedCache.new('theme')

View File

@ -13,9 +13,6 @@ require_dependency 'topic_posters_summary'
require_dependency 'topic_featured_users'
class Topic < ActiveRecord::Base
# TODO remove 01-01-2019
self.ignored_columns = ["percent_rank", "vote_count"]
class UserExists < StandardError; end
include ActionView::Helpers::SanitizeHelper
include RateLimiter::OnCreateRecord

View File

@ -21,10 +21,6 @@ class User < ActiveRecord::Base
include SecondFactorManager
include HasDestroyedWebHook
self.ignored_columns = %w{
group_locked_trust_level
}
has_many :posts
has_many :notifications, dependent: :destroy
has_many :topic_users, dependent: :destroy

View File

@ -4,9 +4,6 @@ require 'digest/sha1'
class UserAuthToken < ActiveRecord::Base
belongs_to :user
# TODO 2019: remove this line
self.ignored_columns = ["legacy"]
ROTATE_TIME = 10.minutes
# used when token did not arrive at client
URGENT_ROTATE_TIME = 1.minute

View File

@ -1,7 +1,4 @@
class UserOption < ActiveRecord::Base
# TODO: remove in 2019
self.ignored_columns = ["theme_key"]
self.primary_key = :user_id
belongs_to :user
before_create :set_defaults

View File

@ -1,9 +1,6 @@
require_dependency 'upload_creator'
class UserProfile < ActiveRecord::Base
# TODO: remove this after Nov 1, 2018
self.ignored_columns = %w{card_image_badge_id}
belongs_to :user, inverse_of: :user_profile
validates :bio_raw, length: { maximum: 3000 }