DEV: Standardize ignored_columns removal comments (#9771)

This commit is contained in:
Kane York 2020-05-13 13:08:15 -07:00 committed by GitHub
parent e1f11f4374
commit 1059557ce1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 4 deletions

View File

@ -5,6 +5,7 @@ class Category < ActiveRecord::Base
'none'
]
# TODO(2020-11-18): remove
self.ignored_columns = %w{
suppress_from_latest
}

View File

@ -1,6 +1,7 @@
# frozen_string_literal: true
class Group < ActiveRecord::Base
# TODO(2021-04-22): remove
self.ignored_columns = %w{
automatic_membership_retroactive
}

View File

@ -10,7 +10,7 @@ class Post < ActiveRecord::Base
include HasCustomFields
include LimitedEdit
# remove line Jan 2021
# TODO(2021-01-04): remove
self.ignored_columns = ["avg_time"]
cattr_accessor :plugin_permitted_create_params

View File

@ -1,6 +1,7 @@
# frozen_string_literal: true
class PostReply < ActiveRecord::Base
# TODO(2020-01-17): remove
self.ignored_columns = %w{
reply_id
}

View File

@ -10,7 +10,7 @@ class Topic < ActiveRecord::Base
include LimitedEdit
extend Forwardable
# remove line Jan 2021
# TODO(2021-01-04): remove
self.ignored_columns = ["avg_time"]
def_delegator :featured_users, :user_ids, :featured_user_ids

View File

@ -1,6 +1,9 @@
# frozen_string_literal: true
class UserEmail < ActiveRecord::Base
# TODO(2020-04-24): remove
self.ignored_columns = ['canonical_email']
belongs_to :user
attr_accessor :skip_validate_email
@ -17,8 +20,6 @@ class UserEmail < ActiveRecord::Base
scope :secondary, -> { where(primary: false) }
self.ignored_columns = ['canonical_email']
private
def strip_downcase_email