Class: Spree::StoreProduct
- Inherits:
-
Object
- Object
- Spree::StoreProduct
- Defined in:
- app/models/spree/store_product.rb
Overview
Thin AR wrapper over the legacy spree_products_stores join table.
Pre-5.5 core used this table to attach products to stores; 5.5+ moved
that responsibility onto Spree::Product#store_id + ProductPublication.
The model exists only to power the 5.4 → 5.5 backfill rake task
(+spree:upgrade:populate_publications+). Host apps upgrading from 5.4
still have the table; after the backfill runs, spree_multi_store (for
multi-store catalogs) keeps the table around, and single-store
installations may drop it.