Files
openfoodnetwork/db/migrate/20200404090436_remove_ga_cookies_preference.rb
2021-04-13 15:51:14 -07:00

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