mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 03:25:31 -05:00
1343d40558
- add missing index to user actions for fast retrieval by post - add missing indexes to users for fast retrieval of staff - only refresh topic_users liked/bookmarked cache for affected users
6 lines
222 B
Ruby
6 lines
222 B
Ruby
class AddStaffIndexToUsers < ActiveRecord::Migration
|
|
def change
|
|
add_index :users, [:id], name: 'idx_users_admin', where: 'admin'
|
|
add_index :users, [:id], name: 'idx_users_moderator', where: 'moderator'
|
|
end
|
|
end
|