Make all rails commands work in engine
#27601

y-yagi wants to merge y-yagi:make_work_all_commands_from_engine into rails:master

We do not currently have an analysis of these two commits