Sha256: d14f0c4abd636e4017307b837978dd0981ab88693dadcdf7193f628f5656ae1e
Contents?: true
Size: 674 Bytes
Versions: 1
Compression:
Stored size: 674 Bytes
Contents
module Workarea module Import class MagentoProduct include ApplicationDocument field :product_data, type: Hash field :magento_product_id, type: String field :product_type, type: String field :imported, type: Boolean field :import_failed, type: Boolean, default: false index({ product_type: 1 }) index({ magento_product_id: 1 }) index({ imported: 1 }) index({ import_failed: 1 }) scope :parent_products, -> { where(product_type: "configurable").where(import_failed: false) } scope :simple_products, -> { where(:product_type.ne => "configurable").where(import_failed: false) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workarea-magento_data_importer-1.0.0 | app/models/workarea/import/magento_product.rb |