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