Remove ga_cookies_preference from DB

This commit is contained in:
Luis Ramos
2020-04-04 10:07:35 +01:00
parent 248b0016d4
commit c5b9727177

View File

@@ -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