Sha256: 29893b596fe2a9104ee2c59df6fdd36bd1a582ba34534fc7bebbc842098d388a

Contents?: true

Size: 238 Bytes

Versions: 3

Compression:

Stored size: 238 Bytes

Contents

class RemoveMatchPolicyFromSpreePromotion < ActiveRecord::Migration[5.2]
  def change
    if column_exists?(:spree_promotions, :match_policy)
      remove_column :spree_promotions, :match_policy, :string, default: "all"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_legacy_promotions-4.4.2 db/migrate/20230322085416_remove_match_policy_from_spree_promotion.rb
solidus_legacy_promotions-4.4.1 db/migrate/20230322085416_remove_match_policy_from_spree_promotion.rb
solidus_legacy_promotions-4.4.0 db/migrate/20230322085416_remove_match_policy_from_spree_promotion.rb