Exception: ActiveRecord::NoEnvironmentInSchemaError
- Inherits:
-
MigrationError
- Object
- StandardError
- ActiveRecordError
- MigrationError
- ActiveRecord::NoEnvironmentInSchemaError
- Defined in:
- lib/active_record/migration.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize ⇒ NoEnvironmentInSchemaError
constructor
A new instance of NoEnvironmentInSchemaError.
Constructor Details
#initialize ⇒ NoEnvironmentInSchemaError
Returns a new instance of NoEnvironmentInSchemaError.
159 160 161 162 163 164 165 166 |
# File 'lib/active_record/migration.rb', line 159 def initialize msg = "Environment data not found in the schema. To resolve this issue, run: \n\n rails db:environment:set" if defined?(Rails.env) super("#{msg} RAILS_ENV=#{::Rails.env}") else super(msg) end end |