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.12.7 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.12.6 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.12.5 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.12.4 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.12.3 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.12.2 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.12.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.12.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.11.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.11.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.10.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.10.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.9.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.8.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.7.4 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.7.3 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.7.2 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.7.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.7.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.6.2 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb