Exception: ActiveRecord::NoEnvironmentInSchemaError

Inherits:
MigrationError show all
Defined in:
activerecord/lib/active_record/migration.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initializeNoEnvironmentInSchemaError

Returns a new instance of NoEnvironmentInSchemaError.



160
161
162
163
164
165
166
167
# File 'activerecord/lib/active_record/migration.rb', line 160

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