Sha256: 36de844df51637c3b1efcdc0bb3de107189a81a64e836154bf8ee56f129ee5b9

Contents?: true

Size: 517 Bytes

Versions: 48

Compression:

Stored size: 517 Bytes

Contents

# frozen_string_literal: true

class CreateGoodJobSettings < 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.table_exists?(:good_job_settings)
      end
    end

    create_table :good_job_settings, id: :uuid do |t|
      t.timestamps
      t.text :key
      t.jsonb :value
      t.index :key, unique: true
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
good_job-3.23.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.22.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.21.5 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.21.4 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.21.3 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.21.2 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.21.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.21.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.20.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.19.4 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.19.3 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.19.2 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.19.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.19.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.18.3 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.18.2 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.18.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.18.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.17.4 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.17.3 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb