Module: TestProf::BeforeAll::Adapters::ActiveRecord
- Defined in:
- lib/test_prof/before_all/adapters/active_record.rb
Overview
ActiveRecord adapter for ‘before_all`
Class Method Summary collapse
Class Method Details
.begin_transaction ⇒ Object
14 15 16 |
# File 'lib/test_prof/before_all/adapters/active_record.rb', line 14 def begin_transaction ::ActiveRecord::Base.connection.begin_transaction(joinable: false) end |
.rollback_transaction ⇒ Object
18 19 20 |
# File 'lib/test_prof/before_all/adapters/active_record.rb', line 18 def rollback_transaction ::ActiveRecord::Base.connection.rollback_transaction end |