Add model definition to migration to make migration more resilient

This commit is contained in:
Luis Ramos
2020-04-07 10:08:10 +01:00
parent c5b9727177
commit d851aa5106

View File

@@ -1,4 +1,6 @@
class RemoveGaCookiesPreference < ActiveRecord::Migration
class Spree::Preference < ActiveRecord::Base; end
def up
Spree::Preference
.where( key: 'spree/app_configuration/cookies_policy_ga_section')