Sha256: 3f92c21c938f6dc1814888c65c6f36c78fdd76c78471edbd243720925996d515

Contents?: true

Size: 208 Bytes

Versions: 3

Compression:

Stored size: 208 Bytes

Contents

class RemoveEcommerceStockField < CamaManager.migration_class
  def change
    Cama::PostType.where(slug: 'commerce').each do |pt|
      pt.get_field_object('ecommerce_stock').try(:destroy)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
camaleon_ecommerce-2.0.4 db/migrate/20161214224919_remove_ecommerce_stock_field.rb
camaleon_ecommerce-2.0.3 db/migrate/20161214224919_remove_ecommerce_stock_field.rb
camaleon_ecommerce-2.0.2 db/migrate/20161214224919_remove_ecommerce_stock_field.rb