Skip to content

Commit

Permalink
Remove unused app config options
Browse files Browse the repository at this point in the history
This has been defined in ENV for a while
  • Loading branch information
mkllnk committed Jan 3, 2025
1 parent 4b94f37 commit d347e4a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
3 changes: 0 additions & 3 deletions app/models/spree/app_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ class AppConfiguration < Preferences::Configuration
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: ","
Expand Down
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2024_11_12_230401) do
ActiveRecord::Schema[7.0].define(version: 2025_01_03_043626) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
enable_extension "plpgsql"
Expand Down

0 comments on commit d347e4a

Please sign in to comment.