Skip to content
  • alpaca-tc's avatar
    67517fde
    Open transaction for multi-db apps · 67517fde
    alpaca-tc authored
    With a multiple database application `rails console --sandbox` becomes
    problematic. We can't rollback any modifications for every database
    because we can't open transaction for the connections that haven't not
    yet been loaded.
    
    To solve this I handled that if the database is connected then it
    will open transaction.
    67517fde
    Open transaction for multi-db apps
    alpaca-tc authored
    With a multiple database application `rails console --sandbox` becomes
    problematic. We can't rollback any modifications for every database
    because we can't open transaction for the connections that haven't not
    yet been loaded.
    
    To solve this I handled that if the database is connected then it
    will open transaction.
Loading