Sha256: 0c96590133f68a27a562815a2b6dcc1589b733db223c146fa0c8fd59bf7f8be1
Contents?: true
Size: 336 Bytes
Versions: 1
Compression:
Stored size: 336 Bytes
Contents
# frozen_string_literal: true tax_category = Spree::TaxCategory.find_by(name: 'IGST') if tax_category.present? Spree::Product.all.each do |product| product.update(tax_category: tax_category) end else Rails.logger 'IGST TaxCategory not found, update the products manually after ensuring the TaxCategory has been created' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_india-0.0.1 | db/samples/update_products_with_tax_category.rb |