My rails application works fine when I run rake db:migrate but the problem occurs when I try to start the rails console.
rake db:migrate
2.0.0p247 :003 > User =
simple solution: The console probably does have a database connection but is reporting that it doesn't.
To see if that's true, make a query in the console.
User.count
That fixed the false positive warning for me and a colleague.
or
Use Model.connection to establish a connection.
Model.connection