Fix: quote_of_idのインデックス

This commit is contained in:
KMY 2023-10-22 17:27:17 +09:00 committed by KMY(雪あすか)
parent 67eced5a98
commit 1fc8032bdf
2 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1,13 @@
# frozen_string_literal: true
require Rails.root.join('lib', 'mastodon', 'migration_helpers')
class AddStatusesQuoteIndex < ActiveRecord::Migration[7.0]
include Mastodon::MigrationHelpers
disable_ddl_transaction!
def change
safety_assured { add_index :statuses, [:quote_of_id, :account_id], unique: false }
end
end