diff --git a/db/migrate/20231011103114_migrate_notification_to_noticed.rb b/db/migrate/20231011103114_migrate_notification_to_noticed.rb index e417d211b..7a52008ef 100644 --- a/db/migrate/20231011103114_migrate_notification_to_noticed.rb +++ b/db/migrate/20231011103114_migrate_notification_to_noticed.rb @@ -11,6 +11,8 @@ class MigrateNotificationToNoticed < ActiveRecord::Migration[7.0] add_column :notifications, :read_at, :datetime add_reference :notifications, :recipient, polymorphic: true + Notification.reset_column_information + type_mapping = { 0 => 'ActivityNotification', 1 => 'GeneralNotification',