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.6.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.6.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.5.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.5.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.4.8 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.4.7 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.4.6 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.4.5 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.4.4 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.4.3 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.4.2 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.4.1 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb
good_job-3.4.0 lib/generators/good_job/templates/update/migrations/02_create_good_job_settings.rb.erb