Raised when a given database does not exist.
Methods
Included Modules
Class Public methods
db_error(db_name) Link
Source: show
# File activerecord/lib/active_record/errors.rb, line 296 def db_error(db_name) NoDatabaseError.new(<<~MSG) We could not find your database: #{db_name}. Available database configurations can be found in config/database.yml file. To resolve this error: - Did you create the database for this app, or delete it? You may need to create your database. - Has the database name changed? Check your database.yml config has the correct database name. To create your database, run:\n\n bin/rails db:create MSG end