Sha256: 1e268c12d866fd1f11b1793e03e89629475e09c8f1caa715d65ef18af05b043e
Contents?: true
Size: 548 Bytes
Versions: 10
Compression:
Stored size: 548 Bytes
Contents
# frozen_string_literal: true class AddDisplayConditionsForOtherQuestionsCounterCacheToQuestions < ActiveRecord::Migration[6.1] def change add_column :decidim_forms_questions, :display_conditions_for_other_questions_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, :display_conditions_for_other_questions) end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems