Sha256: 70cb29c909015adcfdf4e703deac668f653a85fd7355b920421dd284744fdac1

Contents?: true

Size: 213 Bytes

Versions: 2

Compression:

Stored size: 213 Bytes

Contents

class UpdateKeysWhereNilForSpreeTaxonGroup < ActiveRecord::Migration
  def up
    Spree::TaxonGroup.where(key: nil).each do |taxon_group|
      taxon_group.update(key: taxon_group.name.downcase)
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
solidus_taxon_group-1.0.1 db/migrate/20160120200504_update_keys_where_nil_for_spree_taxon_group.rb
spree_taxon_group-3.1.0.beta db/migrate/20151019140742_update_keys_where_nil_for_spree_taxon_group.rb