I had the same error after upgrading rake to 0.9.0. From the
CHANGELOG:

Removed Rake's DSL methods from the top level scope.  If you need to
  call 'task :xzy' in your code, include Rake::DSL into your class, or
  put the code in a Rake::DSL.environment do ... end block.

So for now I just stick to 0.8.7

On May 21, 3:30 am, Nikue <nik...@gmail.com> wrote:
> Hey guys,
>
> heroku rake getting aborted with this trace:
>
> $ heroku rake db:migrate --trace
> rake aborted!
> undefined method `task' for #<Freelance::Application:0x7fca8218f160>
> /app/.bundle/gems/ruby/1.8/gems/railties-3.0.7/lib/rails/
> application.rb:215:in `
> initialize_tasks'
> /app/.bundle/gems/ruby/1.8/gems/railties-3.0.7/lib/rails/
> application.rb:139:in `
> load_tasks'
> /app/.bundle/gems/ruby/1.8/gems/railties-3.0.7/lib/rails/
> application.rb:77:in `s
> end'
> /app/.bundle/gems/ruby/1.8/gems/railties-3.0.7/lib/rails/
> application.rb:77:in `m
> ethod_missing'
> /app/Rakefile:7
> /app/.bundle/gems/ruby/1.8/gems/rake-0.9.0/lib/rake/rake_module.rb:
> 25:in `load'
> /app/.bundle/gems/ruby/1.8/gems/rake-0.9.0/lib/rake/rake_module.rb:
> 25:in `load_r
> akefile'
> /app/.bundle/gems/ruby/1.8/gems/rake-0.9.0/lib/rake/application.rb:
> 495:in `raw_l
> oad_rakefile'
> /app/.bundle/gems/ruby/1.8/gems/rake-0.9.0/lib/rake/application.rb:
> 78:in `load_r
> akefile'
> /app/.bundle/gems/ruby/1.8/gems/rake-0.9.0/lib/rake/application.rb:
> 129:in `stand
> ard_exception_handling'
> /app/.bundle/gems/ruby/1.8/gems/rake-0.9.0/lib/rake/application.rb:
> 77:in `load_r
> akefile'
> /app/.bundle/gems/ruby/1.8/gems/rake-0.9.0/lib/rake/application.rb:
> 61:in `run'
> /app/.bundle/gems/ruby/1.8/gems/rake-0.9.0/lib/rake/application.rb:
> 129:in `stand
> ard_exception_handling'
>
> any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to