db/migrate/20180711104108_fix_result_follows.decidim.rb
# frozen_string_literal: true
# This migration comes from decidim (originally 20180706111847)
class FixResultFollows < ActiveRecord::Migration[5.2]
def change
# rubocop:disable Rails/SkipsModelValidations
Decidim::Follow.where(decidim_followable_type: "Decidim::Results::Result").update_all(decidim_followable_type: "Decidim::Accountability::Result")
# rubocop:enable Rails/SkipsModelValidations
end
end