Sha256: 2ec9f1ed83ee628844a26eeebfc61c585bf9be6e40b18c6322ac334df23b9e24
Contents?: true
Size: 514 Bytes
Versions: 64
Compression:
Stored size: 514 Bytes
Contents
# This migration comes from dm_core (originally 20140501160011) # 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
64 entries across 64 versions & 4 rubygems