123456789_123456789_123456789_123456789_123456789_

Exception: ActiveRecord::NoEnvironmentInSchemaError

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, MigrationError, ActiveRecordError, StandardError
Instance Chain:
self, MigrationError, ActiveRecordError, StandardError
Inherits: ActiveRecord::MigrationError
Defined in: activerecord/lib/active_record/migration.rb

Class Method Summary

Constructor Details

.newNoEnvironmentInSchemaError

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration.rb', line 197

def initialize
  msg = "Environment data not found in the schema. To resolve this issue, run: \n\n        bin/rails db:environment:set"
  if defined?(Rails.env)
    super("#{msg} RAILS_ENV=#{::Rails.env}")
  else
    super(msg)
  end
end