Sha256: c9a87e5c86ddab55cedf24fbec4836d0a9800f1e822bbb40f6f66e4ed29f0da6

Contents?: true

Size: 392 Bytes

Versions: 35

Compression:

Stored size: 392 Bytes

Contents

properties = {
  brand: 'Brand',
  model: 'Model',
  manufacturer: 'Manufacturer',
  made_from: 'Made from',
  fit: 'Fit',
  gender: 'Gender',
  type: 'Type',
  size: 'Size',
  material: 'Material',
  length: 'Lenght',
  color: 'Color',
  collection: 'Collection'
}

properties.each do |name, presentation|
  Spree::Property.where(name: name, presentation: presentation).first_or_create!
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
spree_sample-4.1.15 db/samples/properties.rb
spree_sample-4.2.7 db/samples/properties.rb
spree_sample-4.2.6 db/samples/properties.rb
spree_sample-4.2.5 db/samples/properties.rb
spree_sample-4.1.14 db/samples/properties.rb
spree_sample-4.2.4 db/samples/properties.rb
spree_sample-4.2.3.1 db/samples/properties.rb
spree_sample-4.1.13.1 db/samples/properties.rb
spree_sample-4.2.3 db/samples/properties.rb
spree_sample-4.2.2 db/samples/properties.rb
spree_sample-4.2.1 db/samples/properties.rb
spree_sample-4.2.0 db/samples/properties.rb
spree_sample-4.2.0.rc5 db/samples/properties.rb
spree_sample-4.2.0.rc4 db/samples/properties.rb
spree_sample-4.2.0.rc3 db/samples/properties.rb
spree_sample-4.1.13 db/samples/properties.rb
spree_sample-4.2.0.rc2 db/samples/properties.rb
spree_sample-4.1.12 db/samples/properties.rb
spree_sample-4.2.0.rc1 db/samples/properties.rb
spree_sample-4.1.11 db/samples/properties.rb