Sha256: 0e4867f8bf3d2b2c5aca026175c4ff453a4e15a246ff43aad1172dd2216a0b00

Contents?: true

Size: 363 Bytes

Versions: 2

Compression:

Stored size: 363 Bytes

Contents

class RemoveUnusedColumnsFromPromotionRules < ActiveRecord::Migration[5.2]
  def change
    if column_exists?(:spree_promotion_rules, :code)
      remove_column :spree_promotion_rules, :code, :string
    end
    if column_exists?(:spree_promotion_rules, :product_group_id)
      remove_column :spree_promotion_rules, :product_group_id, :integer
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_legacy_promotions-4.4.1 db/migrate/20230325132905_remove_unused_columns_from_promotion_rules.rb
solidus_legacy_promotions-4.4.0 db/migrate/20230325132905_remove_unused_columns_from_promotion_rules.rb