我正在为Rails中的一个类开发应用程序,当我去运行rake数据库迁移时,我收到以下错误消息:
Joses-MacBook-Air:crumblr JRV$rake db:migraterake aborted!You have already activated rake 10.1.1,but your Gemfile requires rake 10.1.0. Using bundle exec may solve this./usr/local/rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in `block in setup'/usr/local/rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.5/lib/bundler/runtime.rb:19:in `setup'/usr/local/rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'/usr/local/rvm/gems/ruby-1.9.3-p392/gems/bundler-1.3.5/lib/bundler/setup.rb:7:in `<top (required)>'/Users/JRV/crumblr/config/boot.rb:4:in `<top (required)>'/Users/JRV/crumblr/config/application.rb:1:in `<top (required)>'/Users/JRV/crumblr/Rakefile:4:in `<top (required)>'(See full trace by running task with --trace)
恢复或覆盖此问题以允许迁移的解决方案是什么.
解决方法 像它建议的那样,你可以做bundle exec rake db:migrate对于不需要添加前缀的解决方案,请尝试执行bundle update rake
总结以上是内存溢出为你收集整理的ruby-on-rails – Rails 4.0.0,Gemfile需要rake 10.1.0 for Rake全部内容,希望文章能够帮你解决ruby-on-rails – Rails 4.0.0,Gemfile需要rake 10.1.0 for Rake所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)