mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-09 03:20:21 +00:00
14 lines
349 B
Ruby
14 lines
349 B
Ruby
class RemoveGaCookiesPreference < ActiveRecord::Migration[4.2]
|
|
class Spree::Preference < ActiveRecord::Base; end
|
|
|
|
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
|