Sha256: ba0bfdabcb380a8b8577f5277994147c998445f958da581b004cfc6a59a977d7
Contents?: true
Size: 524 Bytes
Versions: 14
Compression:
Stored size: 524 Bytes
Contents
# frozen_string_literal: true class AddValuationAssignmentsCountToDecidimProposalsProposals < ActiveRecord::Migration[6.1] def change add_column :decidim_proposals_proposals, :valuation_assignments_count, :integer, default: 0 reversible do |dir| dir.up do Decidim::Proposals::Proposal.reset_column_information Decidim::Proposals::Proposal.find_each do |record| Decidim::Proposals::Proposal.reset_counters(record.id, :valuation_assignments) end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems