Remove legacy vote post action code. (#6009)

This commit is contained in:
Guo Xiang Tan
2018-07-09 16:54:18 +08:00
committed by GitHub
parent d9a9682f72
commit 96aca6d7e6
17 changed files with 114 additions and 87 deletions

View File

@ -13,6 +13,9 @@ require_dependency 'topic_posters_summary'
require_dependency 'topic_featured_users'
class Topic < ActiveRecord::Base
# TODO: Remove this after 19th Dec 2018
self.ignored_columns = %w{vote_count}
class UserExists < StandardError; end
include ActionView::Helpers::SanitizeHelper
include RateLimiter::OnCreateRecord
@ -44,10 +47,6 @@ class Topic < ActiveRecord::Base
end
end
def self.max_sort_order
@max_sort_order ||= (2**31) - 1
end
def self.max_fancy_title_length
400
end
@ -1429,7 +1428,6 @@ end
# archived :boolean default(FALSE), not null
# bumped_at :datetime not null
# has_summary :boolean default(FALSE), not null
# vote_count :integer default(0), not null
# archetype :string default("regular"), not null
# featured_user4_id :integer
# notify_moderators_count :integer default(0), not null