Sha256: e212cdc61cc6a29bafbc62419e4fb56586bcc180b301a92ee15d936bfeca30bb
Contents?: true
Size: 598 Bytes
Versions: 3
Compression:
Stored size: 598 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
3 entries across 3 versions & 1 rubygems