提交 aa4a7c35 编写于 作者: M Matt Jones 提交者: Pratik Naik

Fix script/console --sandbox warning. [#1194 state:resolved]

Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
上级 d69b4b7b
ActiveRecord::Base.send :increment_open_transactions
ActiveRecord::Base.connection.increment_open_transactions
ActiveRecord::Base.connection.begin_db_transaction
at_exit do
ActiveRecord::Base.connection.rollback_db_transaction
ActiveRecord::Base.send :decrement_open_transactions
ActiveRecord::Base.connection.decrement_open_transactions
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册