mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user