From c5b972717790803c2f1fcd32c8e1f437f798a79b Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Sat, 4 Apr 2020 10:07:35 +0100 Subject: [PATCH] Remove ga_cookies_preference from DB --- .../20200404090436_remove_ga_cookies_preference.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20200404090436_remove_ga_cookies_preference.rb diff --git a/db/migrate/20200404090436_remove_ga_cookies_preference.rb b/db/migrate/20200404090436_remove_ga_cookies_preference.rb new file mode 100644 index 0000000000..7ead37d132 --- /dev/null +++ b/db/migrate/20200404090436_remove_ga_cookies_preference.rb @@ -0,0 +1,11 @@ +class RemoveGaCookiesPreference < ActiveRecord::Migration + def up + Spree::Preference + .where( key: 'spree/app_configuration/cookies_policy_ga_section') + .destroy_all + end + + def down + # If this preference is re-added to the code, the DB entry will be regenerated + end +end