mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Include pinned topics in category list.
- removes an (n+1) query for user data - supports the preload store for the data to avoid a second request - fix a bug where uncategorizes was reporting (0, 0, 0) for topics by week, month, year
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class AddRankToCategoryFeaturedTopics < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :category_featured_topics, :rank, :integer, default: 0, null: false
|
||||
add_index :category_featured_topics, [:category_id, :rank]
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user