Add index of account and reblog to statuses (#5785)

This commit is contained in:
abcang 2017-11-24 22:42:09 +09:00 committed by Eugen Rochko
parent 8c0e77d688
commit a78f66c069
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,6 @@
class AddIndexAccountAndReblogOfIdToStatuses < ActiveRecord::Migration[5.1]
def change
commit_db_transaction
add_index :statuses, [:account_id, :reblog_of_id], algorithm: :concurrently
end
end