mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:29:30 +08:00
f2bef7ea8f
* FIX: Store Reviewable's force_review as a boolean. Using the `force_review` flag raises the score to hit the minimum visibility threshold. This strategy turned out to be ineffective on sites with a high number of flags, where these values could rapidly fluctuate. This change adds a `force_review` column on the reviewables table and modifies the `Reviewable#list_for` method to show these items when passing the `status: :pending` option, even if the score is not high enough. ReviewableQueuedPosts and ReviewableUsers are always created using this option.
8 lines
199 B
Ruby
8 lines
199 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddReviewablesForceReview < ActiveRecord::Migration[6.0]
|
|
def change
|
|
add_column :reviewables, :force_review, :boolean, default: false, null: false
|
|
end
|
|
end
|