Skip to content

Commit

Permalink
turn off the transaction around the migration πŸ€¦πŸ»β€β™‚οΈ
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
indirect committed Oct 5, 2024
1 parent fe522c1 commit 1fd77ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db/data/20241003074932_decompress_plaintext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ module Progress
end

class DecompressPlaintext < ActiveRecord::Migration[7.2]
disable_ddl_transaction!

using Progress

def up
Expand Down

0 comments on commit 1fd77ae

Please sign in to comment.