mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-21 14:19:39 +02:00
* Goodjob 3.99 * Properly bump to good_job 4.0.0 * Remove accidently tracked .tool-versions
18 lines
579 B
Ruby
18 lines
579 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateGoodJobProcessLockIds < ActiveRecord::Migration[7.2]
|
|
def change
|
|
reversible do |dir|
|
|
dir.up do
|
|
# Ensure this incremental update migration is idempotent
|
|
# with monolithic install migration.
|
|
return if connection.column_exists?(:good_jobs, :locked_by_id)
|
|
end
|
|
end
|
|
|
|
add_column :good_jobs, :locked_by_id, :uuid
|
|
add_column :good_jobs, :locked_at, :datetime
|
|
add_column :good_job_executions, :process_id, :uuid
|
|
add_column :good_job_processes, :lock_type, :integer, limit: 2
|
|
end
|
|
end
|