DEV: Add reviewables tab to the new user menu (#17630)

This commit is a subset of the changes proposed in https://github.com/discourse/discourse/pull/17379.
This commit is contained in:
Osama Sayegh
2022-07-28 11:16:33 +03:00
committed by GitHub
parent f4b45df83f
commit 988a175e94
38 changed files with 935 additions and 26 deletions

View File

@@ -0,0 +1,12 @@
# frozen_string_literal: true
class CreateIndexOnReviewablesScoreDescCreatedAtDesc < ActiveRecord::Migration[7.0]
def change
add_index(
:reviewables,
[:score, :created_at],
order: { score: :desc, created_at: :desc },
name: 'idx_reviewables_score_desc_created_at_desc'
)
end
end