Sha256: 99ee9c03ac4cd03a4fe05901343b769ff16b7e4260177fec9fa7b6371bd2d143

Contents?: true

Size: 312 Bytes

Versions: 18

Compression:

Stored size: 312 Bytes

Contents

option_types = [
  {
    :name => "tshirt-size",
    :presentation => "Size",
    :position => 1
  },
  {
    :name => "tshirt-color",
    :presentation => "Color",
    :position => 2
  }
]

option_types.each do |option_type_attrs|
  Spree::OptionType.create!(option_type_attrs, :without_protection => true)
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
spree_sample-2.0.13 db/samples/option_types.rb
spree_sample-2.0.12 db/samples/option_types.rb
spree_sample-2.0.11 db/samples/option_types.rb
spree_sample-2.0.10 db/samples/option_types.rb
spree_sample-2.0.9 db/samples/option_types.rb
spree_sample-1.3.5 db/samples/option_types.rb
spree_sample-2.0.8 db/samples/option_types.rb
spree_sample-2.0.7 db/samples/option_types.rb
spree_sample-2.0.6 db/samples/option_types.rb
spree_sample-1.3.4 db/samples/option_types.rb
spree_sample-2.0.5 db/samples/option_types.rb
spree_sample-2.0.4 db/samples/option_types.rb
spree_sample-2.0.3 db/samples/option_types.rb
spree_sample-1.3.3 db/samples/option_types.rb
spree_sample-2.0.2 db/samples/option_types.rb
spree_sample-2.0.1 db/samples/option_types.rb
spree_sample-2.0.0 db/samples/option_types.rb
spree_sample-2.0.0.rc1 db/samples/option_types.rb