Fix: quote_of_id
のインデックス
This commit is contained in:
parent
67eced5a98
commit
1fc8032bdf
2 changed files with 15 additions and 1 deletions
13
db/post_migrate/20231022074913_add_statuses_quote_index.rb
Normal file
13
db/post_migrate/20231022074913_add_statuses_quote_index.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue