DEV: Remove ignored columns
This commit is contained in:
parent
8a152566e3
commit
e9ec5238fc
|
@ -1,13 +1,6 @@
|
||||||
require_dependency 'distributed_mutex'
|
require_dependency 'distributed_mutex'
|
||||||
|
|
||||||
class EmailLog < ActiveRecord::Base
|
class EmailLog < ActiveRecord::Base
|
||||||
self.ignored_columns = %w{
|
|
||||||
topic_id
|
|
||||||
reply_key
|
|
||||||
skipped
|
|
||||||
skipped_reason
|
|
||||||
}
|
|
||||||
|
|
||||||
CRITICAL_EMAIL_TYPES ||= Set.new %w{
|
CRITICAL_EMAIL_TYPES ||= Set.new %w{
|
||||||
account_created
|
account_created
|
||||||
admin_login
|
admin_login
|
||||||
|
|
|
@ -10,9 +10,6 @@ require 'archetype'
|
||||||
require 'digest/sha1'
|
require 'digest/sha1'
|
||||||
|
|
||||||
class Post < ActiveRecord::Base
|
class Post < ActiveRecord::Base
|
||||||
# TODO: Remove this after 19th Dec 2018
|
|
||||||
self.ignored_columns = %w{vote_count}
|
|
||||||
|
|
||||||
include RateLimiter::OnCreateRecord
|
include RateLimiter::OnCreateRecord
|
||||||
include Trashable
|
include Trashable
|
||||||
include Searchable
|
include Searchable
|
||||||
|
|
|
@ -7,8 +7,6 @@ require_dependency 'theme_translation_parser'
|
||||||
require_dependency 'theme_translation_manager'
|
require_dependency 'theme_translation_manager'
|
||||||
|
|
||||||
class Theme < ActiveRecord::Base
|
class Theme < ActiveRecord::Base
|
||||||
# TODO: remove in 2019
|
|
||||||
self.ignored_columns = ["key"]
|
|
||||||
|
|
||||||
@cache = DistributedCache.new('theme')
|
@cache = DistributedCache.new('theme')
|
||||||
|
|
||||||
|
|
|
@ -13,9 +13,6 @@ require_dependency 'topic_posters_summary'
|
||||||
require_dependency 'topic_featured_users'
|
require_dependency 'topic_featured_users'
|
||||||
|
|
||||||
class Topic < ActiveRecord::Base
|
class Topic < ActiveRecord::Base
|
||||||
# TODO remove 01-01-2019
|
|
||||||
self.ignored_columns = ["percent_rank", "vote_count"]
|
|
||||||
|
|
||||||
class UserExists < StandardError; end
|
class UserExists < StandardError; end
|
||||||
include ActionView::Helpers::SanitizeHelper
|
include ActionView::Helpers::SanitizeHelper
|
||||||
include RateLimiter::OnCreateRecord
|
include RateLimiter::OnCreateRecord
|
||||||
|
|
|
@ -21,10 +21,6 @@ class User < ActiveRecord::Base
|
||||||
include SecondFactorManager
|
include SecondFactorManager
|
||||||
include HasDestroyedWebHook
|
include HasDestroyedWebHook
|
||||||
|
|
||||||
self.ignored_columns = %w{
|
|
||||||
group_locked_trust_level
|
|
||||||
}
|
|
||||||
|
|
||||||
has_many :posts
|
has_many :posts
|
||||||
has_many :notifications, dependent: :destroy
|
has_many :notifications, dependent: :destroy
|
||||||
has_many :topic_users, dependent: :destroy
|
has_many :topic_users, dependent: :destroy
|
||||||
|
|
|
@ -4,9 +4,6 @@ require 'digest/sha1'
|
||||||
class UserAuthToken < ActiveRecord::Base
|
class UserAuthToken < ActiveRecord::Base
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
|
|
||||||
# TODO 2019: remove this line
|
|
||||||
self.ignored_columns = ["legacy"]
|
|
||||||
|
|
||||||
ROTATE_TIME = 10.minutes
|
ROTATE_TIME = 10.minutes
|
||||||
# used when token did not arrive at client
|
# used when token did not arrive at client
|
||||||
URGENT_ROTATE_TIME = 1.minute
|
URGENT_ROTATE_TIME = 1.minute
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
class UserOption < ActiveRecord::Base
|
class UserOption < ActiveRecord::Base
|
||||||
# TODO: remove in 2019
|
|
||||||
self.ignored_columns = ["theme_key"]
|
|
||||||
|
|
||||||
self.primary_key = :user_id
|
self.primary_key = :user_id
|
||||||
belongs_to :user
|
belongs_to :user
|
||||||
before_create :set_defaults
|
before_create :set_defaults
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
require_dependency 'upload_creator'
|
require_dependency 'upload_creator'
|
||||||
class UserProfile < ActiveRecord::Base
|
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
|
belongs_to :user, inverse_of: :user_profile
|
||||||
|
|
||||||
validates :bio_raw, length: { maximum: 3000 }
|
validates :bio_raw, length: { maximum: 3000 }
|
||||||
|
|
Loading…
Reference in New Issue