method

last_stored_environment

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: MigrationContext
last_stored_environment() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/migration.rb, line 1197
    def last_stored_environment # :nodoc:
      return nil unless ActiveRecord::InternalMetadata.enabled?
      return nil if current_version == 0
      raise NoEnvironmentInSchemaError unless ActiveRecord::InternalMetadata.table_exists?

      environment = ActiveRecord::InternalMetadata[:environment]
      raise NoEnvironmentInSchemaError unless environment
      environment
    end
Register or log in to add new notes.