method
last_stored_environment
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::Migrator
last_stored_environment()private
No documentation available.
# File activerecord/lib/active_record/migration.rb, line 1251
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