method
new
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::NoEnvironmentInSchemaError
new()public
No documentation available.
# File activerecord/lib/active_record/migration.rb, line 185
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