Fix issue 8628 for Rails::DBConsole.