Sha256: 7c8b683d16db585869c0b9c9fa7ddc381f386e59762443062136af48c71540fa

Contents?: true

Size: 491 Bytes

Versions: 5

Compression:

Stored size: 491 Bytes

Contents

class AddActiveJobIdConcurrencyKeyCronKeyToGoodJobs < 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, :active_job_id)
      end
    end

    add_column :good_jobs, :active_job_id, :uuid
    add_column :good_jobs, :concurrency_key, :text
    add_column :good_jobs, :cron_key, :text
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
good_job-1.11.2 lib/generators/good_job/templates/update/migrations/02_add_active_job_id_concurrency_key_cron_key_to_good_jobs.rb
good_job-1.11.1 lib/generators/good_job/templates/update/migrations/02_add_active_job_id_concurrency_key_cron_key_to_good_jobs.rb
good_job-1.11.0 lib/generators/good_job/templates/update/migrations/02_add_active_job_id_concurrency_key_cron_key_to_good_jobs.rb
good_job-1.10.1 lib/generators/good_job/templates/update/migrations/02_add_active_job_id_concurrency_key_cron_key_to_good_jobs.rb
good_job-1.10.0 lib/generators/good_job/templates/update/migrations/02_add_active_job_id_concurrency_key_cron_key_to_good_jobs.rb