Files
danbooru/db/migrate/20221026084655_create_good_job_settings.rb
evazion 33e9e5b3f0 db: apply good_jobs migrations
Apply a couple of migrations from `bin/rails generate good_job:update`.
2022-10-26 04:15:37 -05:00

20 lines
497 B
Ruby

# frozen_string_literal: true
class CreateGoodJobSettings < ActiveRecord::Migration[7.0]
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