method
db_error
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::NoDatabaseError
db_error(db_name)public
No documentation available.
# File activerecord/lib/active_record/errors.rb, line 347
def db_error(db_name)
NoDatabaseError.new(<<~MSG)
Database not found: #{db_name}. Available database configurations can be found in config/database.yml.
To resolve this error:
- Create the database by running:
bin/rails db:create
- Verify that config/database.yml contains the correct database name.
MSG
end