rake db:migrate会给我错误

时间:2012-03-22 13:33:50

标签: ruby

我跑的时候 rake db:migrate 它显示了这些警告。我怎么摆脱这个?

DEPRECATION WARNING: railtie_name is deprecated and has no effect. (called from <class:Engine> at /home/shajin/.rvm/gems/ruby-1.9.2-p0/bundler/gems/spree_paypal_express-073f2f814dd8/lib/spree_paypal_express.rb:5)
WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
    at /home/shajin/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
WARNING: Global access to Rake DSL methods is deprecated.  Please include
    ...  Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method Soletronspree::Application#task called at /home/shajin/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.7/lib/rails/application.rb:215:in `initialize_tasks'
WARNING: 'task :t, arg, :needs => [deps]' is deprecated.  Please use 'task :t, [args] => [deps]' instead.
    at /home/shajin/.rvm/gems/ruby-1.9.2-p0/gems/deface-0.5.2a/tasks/deface.rake:3:in `block in <top (required)>'
rake aborted!
undefined method `to_sym' for ["Bit.ly", "bitly"]:Array

Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

1 个答案:

答案 0 :(得分:0)

应用程序是用旧版本的Ruby编写的,而不是您尝试运行它的版本?这可能是个问题。尝试将代码更新为ruby1.9.2,然后检查。