mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-21 09:43:17 +00:00
Rework FEP-7888 implementation (#36064)
This commit is contained in:
parent
377e870348
commit
e1dc960219
9 changed files with 61 additions and 25 deletions
|
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class AddIndexOnParentStatusIdToConversations < ActiveRecord::Migration[8.0]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
add_index :conversations, :parent_status_id, algorithm: :concurrently, unique: true, where: 'parent_status_id IS NOT NULL'
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue