Files
redux-scraper/db/migrate/20230819011645_create_good_job_settings.rb
2025-01-01 03:29:53 +00:00

22 lines
512 B
Ruby

# typed: true
# 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