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.99.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.99.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.30.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.30.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.29.5 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.29.4 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.29.3 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.28.2 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.28.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.28.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.27.4 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.27.3 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.27.2 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.27.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.27.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.26.2 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.26.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.26.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.25.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.24.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb