Sha256: 54d354d9b2593876009f82092d0dc8b40faea3ababe75c765efef10bf2844e15
Contents?: true
Size: 717 Bytes
Versions: 85
Compression:
Stored size: 717 Bytes
Contents
# frozen_string_literal: true class RenameMissingFeaturesToComponents < ActiveRecord::Migration[5.1] class Notification < ApplicationRecord self.table_name = :decidim_notifications end def up # rubocop:disable Rails/SkipsModelValidations Notification.where(decidim_resource_type: "Decidim::Feature").update_all(decidim_resource_type: "Decidim::Component") Notification.where(event_class: "Decidim::FeaturePublishedEvent").update_all(event_class: "Decidim::ComponentPublishedEvent") Notification.where(event_name: "decidim.events.features.feature_published").update_all(event_name: "decidim.events.components.component_published") # rubocop:enable Rails/SkipsModelValidations end end
Version data entries
85 entries across 85 versions & 1 rubygems