lib/good_job.rb in good_job-3.16.2 vs lib/good_job.rb in good_job-3.16.3
- old
+ new
@@ -244,7 +244,16 @@
next_major_version = GEM_VERSION.segments[0] + 1
ActiveSupport::Deprecation.new("#{next_major_version}.0", "GoodJob")
end
end
+ # Whether all GoodJob migrations have been applied.
+ # For use in tests/CI to validate GoodJob is up-to-date.
+ # @return [Boolean]
+ def self.migrated?
+ # Always update with the most recent migration check
+ GoodJob::Execution.reset_column_information
+ GoodJob::Execution.error_event_migrated?
+ end
+
ActiveSupport.run_load_hooks(:good_job, self)
end