method

teardown_transactional_fixtures

rails latest stable - Class: ActiveRecord::TestFixtures

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

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