fixed 评论回复增加parent_id索引,解决性能问题

This commit is contained in:
xxq250 2023-11-15 08:52:23 +08:00
parent 783a2e39ae
commit 27bfeb5fc8
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
class AddJournalParentIdIndex < ActiveRecord::Migration[5.2]
def change
add_index :journals, :parent_id
end
end