From 6bf5c4288a1152ef2f2b2bfba846095d160f23c3 Mon Sep 17 00:00:00 2001 From: Rocket Date: Tue, 25 Jun 2024 07:10:48 -0700 Subject: [PATCH] Revert "Add database migration to enable pgcrypto (#28)" This reverts commit c2cc7e52c416f048ea5b7048aae59115e460c9ca. --- .../migrate/20240613000011_enable_extension_for_uuid.rb | 9 --------- app-rails/db/schema.rb | 3 +-- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 app-rails/db/migrate/20240613000011_enable_extension_for_uuid.rb diff --git a/app-rails/db/migrate/20240613000011_enable_extension_for_uuid.rb b/app-rails/db/migrate/20240613000011_enable_extension_for_uuid.rb deleted file mode 100644 index 000e013..0000000 --- a/app-rails/db/migrate/20240613000011_enable_extension_for_uuid.rb +++ /dev/null @@ -1,9 +0,0 @@ -class EnableExtensionForUuid < ActiveRecord::Migration[7.1] - def up - enable_extension 'pgcrypto' unless extension_enabled?('pgcrypto') - end - - def down - disable_extension 'pgcrypto' if extension_enabled?('pgcrypto') - end -end diff --git a/app-rails/db/schema.rb b/app-rails/db/schema.rb index 1bc0073..709bdc0 100644 --- a/app-rails/db/schema.rb +++ b/app-rails/db/schema.rb @@ -10,9 +10,8 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_06_13_000011) do +ActiveRecord::Schema[7.1].define(version: 2024_04_10_213056) do # These are extensions that must be enabled in order to support this database - enable_extension "pgcrypto" enable_extension "plpgsql" create_table "active_storage_attachments", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|