Sha256: 809256a4bb5b308b8cbf46d5ddb93b33dacdb7ff53fe4d844206851ffab668b5
Contents?: true
Size: 322 Bytes
Versions: 11
Compression:
Stored size: 322 Bytes
Contents
class AddDepthToSpreeTaxons < ActiveRecord::Migration[4.2] def up add_column :spree_taxons, :depth, :integer say_with_time 'Update depth on all taxons' do Spree::Taxon.reset_column_information Spree::Taxon.all.each(&:save) end end def down remove_column :spree_taxons, :depth end end
Version data entries
11 entries across 11 versions & 1 rubygems