Skip to content

Commit

Permalink
Reword error message for NoDatabaseError
Browse files Browse the repository at this point in the history
It looks like Rails already knows there's no database, if so,
I find it a bit too wordy to ask questions. We could
just go ahead and make suggestions as to what could be
wrong.
  • Loading branch information
siaw23 committed Nov 22, 2024
1 parent 4df235f commit c36509e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/lib/active_record/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,11 @@ def db_error(db_name)
To resolve this error:
- Did you not create the database, or did you delete it? To create the database, run:
- Create the database by running:
bin/rails db:create
- Has the database name changed? Verify that config/database.yml contains the correct database name.
- Verify that config/database.yml contains the correct database name.
MSG
end
end
Expand Down

0 comments on commit c36509e

Please sign in to comment.