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