diff options
author | Jon Leighton <j@jonathanleighton.com> | 2013-03-08 15:10:00 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2013-03-08 15:10:46 +0000 |
commit | e5fc096bea4e56a9eb17a80f12775b92c8a8f1ee (patch) | |
tree | a633cbc0eef3e719fc135a4ce9f1303a155dcbd4 /activerecord/lib | |
parent | 8f9c81b15c79903203cd11e51bed5f848e759243 (diff) | |
download | rails-e5fc096bea4e56a9eb17a80f12775b92c8a8f1ee.tar.gz rails-e5fc096bea4e56a9eb17a80f12775b92c8a8f1ee.tar.bz2 rails-e5fc096bea4e56a9eb17a80f12775b92c8a8f1ee.zip |
The console --sandbox transaction should not be joinable
Thanks @neerajdotname for noticing this bug.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/railties/console_sandbox.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/railties/console_sandbox.rb b/activerecord/lib/active_record/railties/console_sandbox.rb index 25a591aa43..604a220303 100644 --- a/activerecord/lib/active_record/railties/console_sandbox.rb +++ b/activerecord/lib/active_record/railties/console_sandbox.rb @@ -1,4 +1,5 @@ -ActiveRecord::Base.connection.begin_transaction +ActiveRecord::Base.connection.begin_transaction(joinable: false) + at_exit do ActiveRecord::Base.connection.rollback_transaction end |