Exception: ActiveRecord::NoEnvironmentInSchemaError

Inherits:
MigrationError show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initializeNoEnvironmentInSchemaError

Returns a new instance of NoEnvironmentInSchemaError.



178
179
180
181
182
183
184
185
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration.rb', line 178

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