method

last_stored_environment

Method not available on this version

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

last_stored_environment()
public

No documentation available.

# File activerecord/lib/active_record/migration.rb, line 1351
    def last_stored_environment # :nodoc:
      internal_metadata = connection_pool.internal_metadata
      return nil unless internal_metadata.enabled?
      return nil if current_version == 0
      raise NoEnvironmentInSchemaError unless internal_metadata.table_exists?

      environment = internal_metadata[:environment]
      raise NoEnvironmentInSchemaError unless environment
      environment
    end