Unknown attribute: queue with delayed_job after rails update 3.2.11
Everything is in the title. After the security warning, I updated my rails from 3.2.3 to 3.2.11 Everything is fine, but I understand that the pending job no longer sends messages with the "unknown attribute: queue" error
I tried to recreate the update migration: rails generate delayed_job: upgrade But I'm told there already exist.
source to share
Alternative answer to @brettish, you can do it yourself (I am writing this because I faced the same problem and the generator delayed_job:upgrade
was undefined for me).
Version 3 added the attribute queue
.
You can follow these steps:
Create migration
rails generate migration AddQueueToDelayedJobs
Add queue
delayed_jobs to your table as follows:
class AddQueueToDelayedJobs < ActiveRecord::Migration[5.1]
def self.up
add_column :delayed_jobs, :queue, :string
end
def self.down
remove_column :delayed_jobs, :queue
end
end
Note. I am using rails 5.1.
Hope it helps!
source to share