app/models/good_job/execution.rb in good_job-3.99.1 vs app/models/good_job/execution.rb in good_job-4.0.0
- old
+ new
@@ -1,12 +1,8 @@
# frozen_string_literal: true
module GoodJob
- # Active Record model that represents an +ActiveJob+ job.
- # Most behavior is currently in BaseExecution in anticipation of
- # moving behavior into +GoodJob::Job+.
- class Execution < BaseExecution
- self.table_name = 'good_jobs'
-
- belongs_to :job, class_name: 'GoodJob::Job', foreign_key: 'active_job_id', primary_key: 'active_job_id', optional: true, inverse_of: :executions
+ # Created at the time a Job begins executing.
+ # Behavior from +DiscreteExecution+ will be merged into this class.
+ class Execution < DiscreteExecution
end
end