method

last_stored_environment

rails latest stable - Class: ActiveRecord::Migrator

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.1.7) is shown here.

last_stored_environment()
private

No documentation available.

# File activerecord/lib/active_record/migration.rb, line 1270
      def self.last_stored_environment
        return nil if current_version == 0
        raise NoEnvironmentInSchemaError unless ActiveRecord::InternalMetadata.table_exists?

        environment = ActiveRecord::InternalMetadata[:environment]
        raise NoEnvironmentInSchemaError unless environment
        environment
      end