Sha256: 7eddb2d836c9b2794c9099028eafe76c8684dd2dd2002e2927310f22640e9c3e
Contents?: true
Size: 371 Bytes
Versions: 58
Compression:
Stored size: 371 Bytes
Contents
# frozen_string_literal: true class AddCommentableCounterCacheToResults < ActiveRecord::Migration[5.2] def change add_column :decidim_accountability_results, :comments_count, :integer, null: false, default: 0, index: true Decidim::Accountability::Result.reset_column_information Decidim::Accountability::Result.find_each(&:update_comments_count) end end
Version data entries
58 entries across 58 versions & 1 rubygems