Merge commit '8a0261c51caf76b6d12e3801da471759c31c9608' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2026-03-04 12:40:16 +01:00
28 changed files with 278 additions and 65 deletions

View File

@@ -0,0 +1,10 @@
# frozen_string_literal: true
class AddUnverifiedAuthorAccountIdToPreviewCards < ActiveRecord::Migration[8.1]
disable_ddl_transaction!
def change
safety_assured { add_reference :preview_cards, :unverified_author_account, null: true, foreign_key: { to_table: 'accounts', on_delete: :nullify }, index: false }
add_index :preview_cards, [:unverified_author_account_id, :id], algorithm: :concurrently, where: 'unverified_author_account_id IS NOT NULL'
end
end