当我使用诸如db:migrate
或db:create
之类的命令时,一切似乎都可以正常工作,但是随后我需要处理其他一些问题,并删除与数据库相关的所有更改,该更改是mysql并在重新安装mysql之后开始出现提到的命令...
rake aborted!
LoadError: cannot load such file -- active_record/tasks/mysql_database_tasks
/home/azan/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:293:in `require'
/home/azan/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:293:in `block in require'
/home/azan/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:259:in `load_dependency'
/home/azan/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:293:in `require'
/home/azan/.rvm/gems/ruby-2.4.0/gems/activerecord-5.0.6/lib/active_record/tasks/database_tasks.rb:66:in `<module:DatabaseTasks>'
/home/azan/.rvm/gems/ruby-2.4.0/gems/activerecord-5.0.6/lib/active_record/tasks/database_tasks.rb:37:in `<module:Tasks>'
/home/azan/.rvm/gems/ruby-2.4.0/gems/activerecord-5.0.6/lib/active_record/tasks/database_tasks.rb:4:in `<module:ActiveRecord>'
/home/azan/.rvm/gems/ruby-2.4.0/gems/activerecord-5.0.6/lib/active_record/tasks/database_tasks.rb:3:in `<top (required)>'
/home/azan/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:293:in `require'
/home/azan/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:293:in `block in require'
/home/azan/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:259:in `load_dependency'
/home/azan/.rvm/gems/ruby-2.4.0/gems/activesupport-5.0.6/lib/active_support/dependencies.rb:293:in `require'
/home/azan/.rvm/gems/ruby-2.4.0/gems/activerecord-5.0.6/lib/active_record/railtie.rb:35:in `block (3 levels) in <class:Railtie>'
/home/azan/.rvm/gems/ruby-2.4.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
/home/azan/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `eval'
/home/azan/.rvm/gems/ruby-2.4.0/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => db:migrate => db:load_config
(See full trace by running task with --trace)
现在我不知道一种摆脱这种情况的方法……有帮助吗???
此错误来自postgres数据库,但已删除并重新安装后卸载了与mysql相关的所有更改,我被卡在这里。