From 1fd77ae439b3ab68bb29df59ad7e178f9a827545 Mon Sep 17 00:00:00 2001 From: Andre Arko Date: Sat, 5 Oct 2024 14:37:16 +0900 Subject: [PATCH] =?UTF-8?q?turn=20off=20the=20transaction=20around=20the?= =?UTF-8?q?=20migration=20=F0=9F=A4=A6=F0=9F=8F=BB=E2=80=8D=E2=99=82?= =?UTF-8?q?=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit how did I fail to remember that migrations themselves are fully wrapped in a single transaction. sigh. turns out everything works as expected once the thing that changes every single record in the entire database isn't one giant transaction! --- db/data/20241003074932_decompress_plaintext.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/data/20241003074932_decompress_plaintext.rb b/db/data/20241003074932_decompress_plaintext.rb index e9f74afb..8aa690df 100644 --- a/db/data/20241003074932_decompress_plaintext.rb +++ b/db/data/20241003074932_decompress_plaintext.rb @@ -9,6 +9,8 @@ module Progress end class DecompressPlaintext < ActiveRecord::Migration[7.2] + disable_ddl_transaction! + using Progress def up