![rake 中止!不知道如何构建任务“db:migrate”(请参阅 --tasks)](https://linux22.com/image/1151213/rake%20%E4%B8%AD%E6%AD%A2%EF%BC%81%E4%B8%8D%E7%9F%A5%E9%81%93%E5%A6%82%E4%BD%95%E6%9E%84%E5%BB%BA%E4%BB%BB%E5%8A%A1%E2%80%9Cdb%3Amigrate%E2%80%9D%EF%BC%88%E8%AF%B7%E5%8F%82%E9%98%85%E2%80%8B%E2%80%8B%20--tasks%EF%BC%89.png)
有人能帮我解决 ruby on rails 问题吗?我尝试参考了很多关于此错误的文章,但还是无法弄清楚。我尝试执行“rake db:migrate”,但得到了 rake 中止!不知道如何构建任务“db:migrate”(请参阅 --tasks)
另外,我尝试追踪它并得到以下结果
rake 中止!不知道如何构建任务 'db:migrate'(请参阅 --tasks)/usr/lib/ruby/vendor_ruby/rake/task_manager.rb:62: []' /usr/lib/ruby/vendor_ruby/rake/application.rb:149:in
inininvoke_task'/ usr/lib/ruby/vendor_ruby/rake/application.rb:106:ineach'/usr/lib/ruby/vendor_ruby/rake/application.rb: block (2 levels) in top_level' /usr/lib/ruby/vendor_ruby/rake/application.rb:106:in
106: block in top_level' /usr/lib/ruby/vendor_ruby/rake/application.rb:115:in
inrun_with_threads' /usr/lib/ruby/vendor_ruby/rake/application.rb:100:inblockinrun' top_level' /usr/lib/ruby/vendor_ruby/rake/application.rb:78:in
/usr/lib/ruby/vendor_ruby standard_exception_handling' /usr/lib/ruby/vendor_ruby/rake/application.rb:75:in
/rake/application.rb:176:inrun'/usr/bin/rake:27:in`'