Why are some rake tasks missing?

All db:test:* rake tasks are not on my rake -T list, but I can still name them normally. What can cause this?

+7
source share
2 answers

Obviously, the Rails team decided that rake -T gave too much result; many of the Rake task descriptions are commented out. See https://github.com/rails/rails/commit/29acc17 and https://github.com/rails/rails/commit/9838156 for an example (which includes some tasks from db:test:* ).

+7
source

I feel that they could make a separate switch to list all the commands. But until this is done, I recommend using rake -P , as it will list all available commands and their dependencies - without description - this is a bit overkill in the task. If you use Linux as an OS, then using grep in the list you will get a more detailed list.

+3
source

All Articles