From da1926efc1e1f150f27e0c93d1461e3f1eb8c85a Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 21 Jun 2018 20:40:59 +0100 Subject: Update Que to 1.0.0 (beta 3) --- app/models/que_job.rb | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'app/models') diff --git a/app/models/que_job.rb b/app/models/que_job.rb index a2227b8..4bddaa0 100644 --- a/app/models/que_job.rb +++ b/app/models/que_job.rb @@ -22,15 +22,21 @@ # # Table name: que_jobs # -# priority :integer default(100), not null -# run_at :datetime not null -# job_id :integer not null -# job_class :text not null -# args :json not null -# error_count :integer default(0), not null -# last_error :text -# queue :text default(""), not null +# priority :integer default(100), not null +# run_at :datetime not null +# id :integer not null, primary key +# job_class :text not null +# error_count :integer default(0), not null +# last_error_message :text +# queue :text default("default"), not null +# last_error_backtrace :text +# finished_at :datetime +# expired_at :datetime +# args :jsonb not null +# data :jsonb not null # -class QueJob < ActiveRecord::Base +require 'que/active_record/model' + +class QueJob < Que::ActiveRecord::Model end -- cgit v1.2.3