Revert "DEV: Remove stale ignored_columns from models."

This reverts commit 9f5c8644d060b462395135bf7ea2a48f831e129d.

Have to revert because the ignored columns have not been dropped.
This commit is contained in:
Alan Guo Xiang Tan
2022-01-11 10:57:21 +08:00
parent c2afc3915b
commit 6fb89c153a
13 changed files with 51 additions and 0 deletions

View File

@ -4,6 +4,9 @@ class UserStat < ActiveRecord::Base
belongs_to :user
after_save :trigger_badges
# TODO(2021-05-13): Remove
self.ignored_columns = ["topic_reply_count"]
def self.ensure_consistency!(last_seen = 1.hour.ago)
reset_bounce_scores
update_distinct_badge_count