discourse/plugins/discourse-topic-voting/db/migrate/20251209012613_add_vote_counts_index.rb
Sam 9405fa6762
FEATURE: support topics filter UI when ordering on votes (#36516)
- Adds help strings
- Scopes order:votes to categories supporting voting
- Adds votes-min and votes-max operators

---------

Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>
2025-12-09 12:49:24 +11:00

8 lines
256 B
Ruby

# frozen_string_literal: true
class AddVoteCountsIndex < ActiveRecord::Migration[8.0]
def change
add_index :topic_voting_topic_vote_count,
:votes_count,
name: "index_topic_voting_topic_vote_count_on_votes_count"
end
end