From 20e3814da124a959eb55f3b938faf7b02f434ff9 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Mon, 8 Jul 2024 12:33:41 +0200 Subject: [PATCH] Ignore the `is_discrete` column For a safe migration, this column must be ignored first --- app/models/good_job/base_execution.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/good_job/base_execution.rb b/app/models/good_job/base_execution.rb index 1490b9fa..36008daf 100644 --- a/app/models/good_job/base_execution.rb +++ b/app/models/good_job/base_execution.rb @@ -25,6 +25,8 @@ class BaseExecution < BaseRecord self.advisory_lockable_column = 'active_job_id' self.implicit_order_column = 'created_at' + self.ignored_columns += ["is_discrete"] + define_model_callbacks :perform define_model_callbacks :perform_unlocked, only: :after