• Gabriel Mazetto's avatar
    MigrationHelper `disable_statement_timeout` accepts `transaction: false` · 09e7c75d
    Gabriel Mazetto authored
    By default statement_timeout will only be enabled during transaction
    lifetime, therefore not leaking outside of it.
    
    With `transaction: false` it will set for entire session, but requires
    a block to passed. It yields control and cleans up session after block
    finishes, also preventing leaking outside of it.
    09e7c75d
migration_helpers.rb 40.1 KB