class method
self.username_error
Ruby on Rails 8.1.2
Since v7.0.10Signature
self.username_error(username)
No documentation comment.
Parameters
-
usernamereq
Source
# File activerecord/lib/active_record/errors.rb, line 114
def username_error(username)
DatabaseConnectionError.new(<<~MSG)
There is an issue connecting to your database with your username/password, username: #{username}.\n
Please check your database configuration to ensure the username/password are valid.
MSG
end
Defined in activerecord/lib/active_record/errors.rb line 114
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::DatabaseConnectionError