method

last_stored_environment

Importance_0
v7.1.3.2 - 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 1355
    def last_stored_environment # :nodoc:
      return nil unless connection.internal_metadata.enabled?
      return nil if current_version == 0
      raise NoEnvironmentInSchemaError unless connection.internal_metadata.table_exists?

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