rails--rails/railties/lib/rails/commands
eileencodes b96d01bb1b
Fix dbconsole for 3-tier config.
It's possible that applications using a 3-tier config don't have a
"primary" database entry. When booting the db console we should take the
first database, not assume there's a primary.

This also changes the message to be more clear. If no database is
provided and there are no databases for the environment we shouldn't
say that "primary" didn't exist - instead it should say no databases
exist.
2021-12-17 11:17:17 -05:00
..
application
console
credentials Handle paths with spaces when editing credentials 2021-07-08 11:47:44 -05:00
db/system/change Change commands to not depend on ARGV 2020-02-18 14:08:59 -06:00
dbconsole Fix dbconsole for 3-tier config. 2021-12-17 11:17:17 -05:00
destroy
dev
encrypted Don't load app environment when running encrypted commands 2020-05-12 12:06:05 -05:00
generate Fix `rails new --dev` 2020-02-16 00:44:37 -06:00
help Add plugin to common command USAGE (#41457) 2021-07-28 17:59:22 -04:00
initializers
new
notes Resolve default annotation tags after config loads 2021-01-21 14:56:19 -06:00
plugin
rake Load Rails Rake tasks only once 2020-08-30 11:34:26 -05:00
routes
runner Expand path of user provided file in runner 2021-04-18 13:45:33 +03:00
secrets Remove references to secrets.yml from documentation 2020-08-26 14:59:26 -04:00
server Remove Command::Spellchecker and use DidYouMean for suggestions 2021-06-04 09:20:43 +02:00
test Change commands to not depend on ARGV 2020-02-18 14:08:59 -06:00
version