lib/rocket_job/plugins/cron.rb in rocketjob-3.1.0 vs lib/rocket_job/plugins/cron.rb in rocketjob-3.2.0
- old
+ new
@@ -98,10 +98,10 @@
extend ActiveSupport::Concern
included do
include Restart
- field :cron_schedule, type: String, class_attribute: true, user_editable: true
+ field :cron_schedule, type: String, class_attribute: true, user_editable: true, copy_on_restart: true
before_create :rocket_job_set_run_at
validates_presence_of :cron_schedule
validates_each :cron_schedule do |record, attr, value|