Sha256: 05d72382fc49b77effb1a657626d15ccd8eb727bdb60457c0d166235155490e8

Contents?: true

Size: 516 Bytes

Versions: 53

Compression:

Stored size: 516 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

53 entries across 53 versions & 1 rubygems

Version Path
good_job-3.15.14 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.15.13 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.15.12 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.15.11 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.15.10 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.15.9 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.15.8 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.15.7 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.15.6 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.15.5 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.15.4 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.15.3 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.15.2 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.15.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.15.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.14.2 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.14.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.14.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.13.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.12.8 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb