Remove outdated SSL setting from database

This commit is contained in:
Maikel Linke
2023-01-30 14:32:31 +11:00
parent 0fc108a8e6
commit 8c458c2d48
2 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
# frozen_string_literal: true
class DeleteSslPreferences < ActiveRecord::Migration[6.1]
def up
execute <<~SQL
DELETE FROM spree_preferences
WHERE key IN (
'/spree/app_configuration/allow_ssl_in_production',
'/spree/app_configuration/allow_ssl_in_staging'
)
SQL
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2023_01_17_043628) do
ActiveRecord::Schema.define(version: 2023_01_30_032659) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"