Sha256: 1ef79bfc3650e813c00e6c46f9a6e7f533c1ae1cf417b4f1e4069e3060530334
Contents?: true
Size: 455 Bytes
Versions: 60
Compression:
Stored size: 455 Bytes
Contents
# This migration comes from acts_as_taggable_on_engine (originally 3) class AddTaggingsCounterCacheToTags < ActiveRecord::Migration def self.up add_column :tags, :taggings_count, :integer, default: 0 # ActsAsTaggableOn::Tag.reset_column_information # ActsAsTaggableOn::Tag.find_each do |tag| # ActsAsTaggableOn::Tag.reset_counters(tag.id, :taggings) # end end def self.down remove_column :tags, :taggings_count end end
Version data entries
60 entries across 58 versions & 1 rubygems