Sha256: d64e166e84d98c2d0f6255128cea2e97d499855caf04151fb8ed196904d9abbe
Contents?: true
Size: 336 Bytes
Versions: 58
Compression:
Stored size: 336 Bytes
Contents
# frozen_string_literal: true class AddCommentableCounterCacheToPosts < ActiveRecord::Migration[5.2] def change add_column :decidim_blogs_posts, :comments_count, :integer, null: false, default: 0, index: true Decidim::Blogs::Post.reset_column_information Decidim::Blogs::Post.find_each(&:update_comments_count) end end
Version data entries
58 entries across 58 versions & 1 rubygems