Sha256: 3d2d4dacc20b0b890cf4c55d59a6afaf3689c49f5249b862818aa93fd47b9609

Contents?: true

Size: 412 Bytes

Versions: 42

Compression:

Stored size: 412 Bytes

Contents

# frozen_string_literal: true
class AddCronAtToGoodJobs < 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, :cron_at)
      end
    end

    add_column :good_jobs, :cron_at, :timestamp
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
good_job-2.11.2 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.11.1 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.11.0 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.10.0 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.9.6 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.9.5 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.9.4 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.9.3 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.9.2 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.9.1 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.9.0 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.8.1 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.8.0 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.7.4 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.7.3 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.7.2 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.7.1 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.7.0 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.6.2 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb
good_job-2.6.1 lib/generators/good_job/templates/update/migrations/02_add_cron_at_to_good_jobs.rb.erb