File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
activerecord/lib/active_record Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -318,14 +318,15 @@ def initialize(message = nil, connection_pool: nil)
318
318
class << self
319
319
def db_error ( db_name )
320
320
NoDatabaseError . new ( <<~MSG )
321
- We could not find your database: #{ db_name } . Available database configurations can be found in config/database.yml file .
321
+ We could not find your database: #{ db_name } . Available database configurations can be found in config/database.yml.
322
322
323
323
To resolve this error:
324
324
325
- - Did you create the database for this app, or delete it? You may need to create your database.
326
- - Has the database name changed? Check your database.yml config has the correct database name.
325
+ - Did you not create the database, or did you delete it? To create the database, run:
327
326
328
- To create your database, run:\n \n bin/rails db:create
327
+ bin/rails db:create
328
+
329
+ - Has the database name changed? Verify that config/database.yml contains the correct database name.
329
330
MSG
330
331
end
331
332
end
You can’t perform that action at this time.
0 commit comments