ActiveRecord transactions roll back on Ruby Thread abort
11-Feb-2022 1341
I I learned that ActiveRecord would roll back transactions when inside an aborted thread. It’s implemented right here, in ActiveRecord’s connection_adapters/abstract/transaction.rb:.
ActiveRecord transactions roll back on Ruby Thread abort #ruby #rubydeveloper #rubyonrails #ActiveRecord #transactions #Thread #abort #activerecord #thread https://rubyonrails.ba/link/activerecord-transactions-roll-back-on-ruby-thread-abort