collectiveidea/delayed_job — Issue #318: The error "delayed_jobs table doesn't exists" when I try to run `rails g delayed_job`
Author: m3nd3s
Created: 2011-12-11 21:58:57+00:00
State: open

I follow the instructions showed on README, but, when I run `rails g delayed_job` as is showed on README the error "delayed_jobs table doesn't exists".

To solve this problem I changed the method `self.guess_backend` in worker.rb as I show below:

42 def self.guess_backend
43 self.backend ||= :active_record if defined?(ActiveRecord) and ActiveRecord::Base.connection.tables.include?('delayed_jobs')
44 end

Only after I added a "check code" I could continue using delayed job in my project. Someone knows why this error happen, and if this error is a bug?

My environment (using RVM):
ruby 1.9.2-0136
rails 3.0.10