Skip to content
  • Kamil Trzciński's avatar
    Improve `BeforeAllAdapter` support · 8ba2a598
    Kamil Trzciński authored
    Usage of `connection_handlers` is not always correct
    as we might end-up with misaligned transactions.
    
    The usage of `AR::Base.establish_connection` is bad design
    as it break `before_all_adapter` and is always a misaligned transaction.
    
    The cases where it will break:
    - `.establish_connection`
    - `.pool.disconnect!`
    - `.release_connection`
    8ba2a598