class Solidus::Migrations::PromotionWithCodeHandlers::DoNothing
Public Instance Methods
call()
click to toggle source
# File lib/solidus/migrations/promotions_with_code_handlers.rb, line 54 def call # This approach will delete all codes without taking any action. At # least we could print a message to track what we are deleting. # promotions.find_each do |promotion| migration_context.say "Code '#{promotion.code}' is going to be removed "\ "from Spree::Promotion with id '#{promotion.id}'" end end