Sha256: 2d82ca9d9aec5fc9467f9b681f4e0502e74cc05e20fb1d5e561c9b005cf05d40
Contents?: true
Size: 480 Bytes
Versions: 48
Compression:
Stored size: 480 Bytes
Contents
# frozen_string_literal: true class AddFollowableCounterCacheToMeetings < ActiveRecord::Migration[5.2] def change add_column :decidim_meetings_meetings, :follows_count, :integer, null: false, default: 0, index: true reversible do |dir| dir.up do Decidim::Meetings::Meeting.reset_column_information Decidim::Meetings::Meeting.find_each do |record| record.class.reset_counters(record.id, :follows) end end end end end
Version data entries
48 entries across 48 versions & 1 rubygems