Fix: 限定投稿新規追加時の負荷 (#321)

This commit is contained in:
KMY(雪あすか) 2023-11-30 18:38:48 +09:00 committed by GitHub
parent 39446f1357
commit 780426db31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View file

@ -0,0 +1,9 @@
# frozen_string_literal: true
class AddIndexOnStatusesConversationId < ActiveRecord::Migration[7.1]
disable_ddl_transaction!
def change
add_index :statuses, :conversation_id, algorithm: :concurrently
end
end