class Solidus::Migrations::PromotionWithCodeHandlers::RaiseException
Public Instance Methods
call()
click to toggle source
# File lib/solidus/migrations/promotions_with_code_handlers.rb, line 20 def call # Please note that this will block the current migration and rollback all # the previous ones run with the same "rails db:migrate" command. # raise StandardError, "You are trying to drop 'code' column from "\ "spree_promotions table but you have at least one record with that "\ "column filled. Please take care of that or you could lose data. See:" \ "\n" \ "https://github.com/solidusio/solidus/pull/3028"\ "\n" end