app/models/good_job/execution.rb in good_job-3.14.1 vs app/models/good_job/execution.rb in good_job-3.14.2
- old
+ new
@@ -68,10 +68,9 @@
{ include: queues }
end
end
belongs_to :batch, class_name: 'GoodJob::BatchRecord', optional: true, inverse_of: :executions
- belongs_to :batch_callback, class_name: 'GoodJob::Batch', optional: true
belongs_to :job, class_name: 'GoodJob::Job', foreign_key: 'active_job_id', primary_key: 'active_job_id', optional: true, inverse_of: :executions
after_destroy -> { self.class.active_job_id(active_job_id).delete_all }, if: -> { @_destroy_job }
# Get executions with given ActiveJob ID