Sha256: 4a00313eb7dbe4b8af1ff192415d34ee0d3207570fc5193cab834e548e4f4f94
Contents?: true
Size: 320 Bytes
Versions: 9
Compression:
Stored size: 320 Bytes
Contents
class AddVendorIdToSpreeModels < SpreeExtension::Migration[4.2] def change SpreeMultiVendor.vendorized_models.each do |klass| add_reference klass.table_name, :vendor, index: true rescue message = "Could not add vendor_id column to spree_#{klass}" Rails.logger.error message end end end
Version data entries
9 entries across 9 versions & 2 rubygems