Remove unused app config options

This has been defined in ENV for a while
This commit is contained in:
Maikel Linke
2025-01-03 15:40:51 +11:00
committed by Konrad
parent 917e0ff01a
commit cf35e48d14
2 changed files with 13 additions and 3 deletions

View File

@@ -33,9 +33,6 @@ module Spree
preference :allow_backorder_shipping, :boolean, default: false
preference :allow_checkout_on_gateway_error, :boolean, default: false
preference :allow_guest_checkout, :boolean, default: true
# Replace with the name of a zone if you would like to limit the countries
preference :checkout_zone, :string, default: nil
preference :currency, :string, default: "USD"
preference :currency_decimal_mark, :string, default: "."
preference :currency_symbol_position, :string, default: "before"
preference :currency_thousands_separator, :string, default: ","

View File

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