Sha256: ec2484edc5ca1740e2b61de30f59cdfe27904a1f7e63e4d79468396e85540bb4

Contents?: true

Size: 422 Bytes

Versions: 6

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true
class AddRetriedGoodJobIdToGoodJobs < ActiveRecord::Migration[5.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, :retried_good_job_id)
      end
    end

    add_column :good_jobs, :retried_good_job_id, :uuid
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
good_job-1.99.2 lib/generators/good_job/templates/update/migrations/04_add_retried_good_job_id_to_good_jobs.rb
good_job-1.99.1 lib/generators/good_job/templates/update/migrations/04_add_retried_good_job_id_to_good_jobs.rb
good_job-1.99.0 lib/generators/good_job/templates/update/migrations/04_add_retried_good_job_id_to_good_jobs.rb
good_job-1.13.2 lib/generators/good_job/templates/update/migrations/04_add_retried_good_job_id_to_good_jobs.rb
good_job-1.13.1 lib/generators/good_job/templates/update/migrations/04_add_retried_good_job_id_to_good_jobs.rb
good_job-1.13.0 lib/generators/good_job/templates/update/migrations/04_add_retried_good_job_id_to_good_jobs.rb