method

last_stored_environment

Importance_0
v5.2.3 - 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 1130
    def 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
Register or log in to add new notes.