Merge commit 'f9655d3c62fc6c59e8646306ca8d22b4706d144b' into glitch-soc/merge-4.7

This commit is contained in:
Claire committed 2026-08-28 18:51:58 +02:00
commit 3dddb87fc5
10 files changed
+94 -11

No files matched your search

@@ -3,7 +3,13 @@
class AddIndexAccountIdLocalFragmentToKeypair < ActiveRecord::Migration[8.1]
disable_ddl_transaction!
def change
def up
add_index :keypairs, [:account_id, :local_fragment], unique: true, where: 'local_fragment IS NOT NULL', algorithm: :concurrently
rescue ActiveRecord::StatementInvalid
safety_assured { execute 'REINDEX INDEX CONCURRENTLY index_keypairs_on_account_id_and_local_fragment' }
end
def down
remove_index :keypairs, name: :index_keypairs_on_account_id_and_local_fragment
end
end
@@ -3,7 +3,13 @@
class AddNewIndexAccountIdLocalFragmentToKeypair < ActiveRecord::Migration[8.1]
disable_ddl_transaction!
def change
def up
add_index :keypairs, [:account_id, :local_fragment], unique: true, name: :index_keypairs_on_account_id_and_local_fragment, algorithm: :concurrently
rescue ActiveRecord::StatementInvalid
safety_assured { execute 'REINDEX INDEX CONCURRENTLY index_keypairs_on_account_id_and_local_fragment' }
end
def down
remove_index :keypairs, name: :index_keypairs_on_account_id_and_local_fragment
end
end