Sha256: d727faa1f533fec7aee6d7072a053d26547cd7ce4d321542de03f9a6137880f4

Contents?: true

Size: 597 Bytes

Versions: 4

Compression:

Stored size: 597 Bytes

Contents

# frozen_string_literal: true
class CreateGoodJobProcessLockIds < ActiveRecord::Migration<%= migration_version %>
  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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
good_job-3.30.0 lib/generators/good_job/templates/update/migrations/13_create_good_job_process_lock_ids.rb.erb
good_job-3.29.5 lib/generators/good_job/templates/update/migrations/13_create_good_job_process_lock_ids.rb.erb
good_job-3.29.4 lib/generators/good_job/templates/update/migrations/13_create_good_job_process_lock_ids.rb.erb
good_job-3.29.3 lib/generators/good_job/templates/update/migrations/13_create_good_job_process_lock_ids.rb.erb