mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
PERF: add missing index on topic_links
This commit is contained in:
parent
985d0268de
commit
46c138fb12
1 changed files with 5 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
|||
class AddLinkPostIdIndexOnTopicLinks < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :topic_links, [:link_post_id, :reflection]
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue