尝试运行rake db:migrate,返回错误。
然后用--trace再次运行,错误如下:
Paul-Denlingers-MacBook-Pro:things_i_bought pdenlinger$ rake db:migrate --trace
rake中止!未定义的方法task' for #<ThingsIBought::Application:0x00000101679880>
/Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.7/lib/rails/application.rb:215:in
initialize_tasks'/Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.07/lib/rails/application.rb:139:在load_tasks'
/Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.7/lib/rails/application.rb:77:in
方法中_missing'/用户/pdenlinger/rails_projects/things_i_buye/Rakefile:7:在<top (required)>'
/Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/rake_module.rb:25:in
加载中'/用户/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/rake_module.rb:25:in load_rakefile'
/Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/application.rb:495:in
raw_load_rakefile'/Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/application.rb:78:in block in load_rakefile'
/Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/application.rb:129:in
standard_exception_handling'/Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/application.rb:77:运行中的load_rakefile'
/Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/application.rb:61:in
块中/Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/application.rb:129:in standard_exception_handling'
/Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/lib/rake/application.rb:59:in
run'/Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/gems/rake-0.9.0/bin/rake:31:在<top (required)>'
/Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/bin/rake:19:in
加载中'/Users/pdenlinger/.rvm/gems/ruby-1.9.2-p0/bin/rake:19:在`'中
它说"任务"是一种未定义的方法;这是什么意思?我能做些什么来修复它?
运行轨道3.0.7
看看这个问题。你可以在Gemfile中恢复到0.8.7的Rakefile,也可以修补你的Rakefile。
也许这会有所帮助。->Gist:损坏的rakefile
Rake 0.9.0打碎了一些东西。
同时,尝试:
bundle exec rake db:migrate