Sha256: 48de6eb82ceb90f319327f02796579ce0989433034a57fdb6416fe8b7368864d
Contents?: true
Size: 469 Bytes
Versions: 10
Compression:
Stored size: 469 Bytes
Contents
# frozen_string_literal: true class AddMatrixRowCounterCacheToQuestions < ActiveRecord::Migration[6.1] def change add_column :decidim_forms_questions, :matrix_rows_count, :integer, null: false, default: 0 reversible do |dir| dir.up do Decidim::Forms::Question.reset_column_information Decidim::Forms::Question.find_each do |record| record.class.reset_counters(record.id, :matrix_rows) end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems