method
teardown_transactional_fixtures
v7.2.3 -
Show latest stable
- Class:
ActiveRecord::TestFixtures
teardown_transactional_fixtures()private
No documentation available.
# File activerecord/lib/active_record/test_fixtures.rb, line 191
def teardown_transactional_fixtures
ActiveSupport::Notifications.unsubscribe(@connection_subscriber) if @connection_subscriber
unless @fixture_connection_pools.map(&:unpin_connection!).all?
# Something caused the transaction to be committed or rolled back
# We can no longer trust the database is in a clean state.
@@already_loaded_fixtures.clear
end
@fixture_connection_pools.clear
teardown_shared_connection_pool
end