Sha256: 665468cfd93980050028375c4359422267671d4106a770a550bfdfa2fe148366
Contents?: true
Size: 461 Bytes
Versions: 9
Compression:
Stored size: 461 Bytes
Contents
# This migration comes from spree (originally 20130826062534) class AddDepthToSpreeTaxons < ActiveRecord::Migration[4.2] def up if !Spree::Taxon.column_names.include?('depth') add_column :spree_taxons, :depth, :integer say_with_time 'Update depth on all taxons' do Spree::Taxon.reset_column_information Spree::Taxon.all.each { |t| t.save } end end end def down remove_column :spree_taxons, :depth end end
Version data entries
9 entries across 9 versions & 2 rubygems