Include other notification types to migration

This commit is contained in:
Anton 2023-10-18 12:47:44 +02:00
parent 3bf218b5f6
commit c70bc67347

View file

@ -22,6 +22,7 @@ class MigrateNotificationToNoticed < ActiveRecord::Migration[7.0]
notification = user_notification.notification.dup
new_type = type_mapping[notification.type_of]
new_type ||= 'GeneralNotification'
params = {
title: notification.title,