Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add uniqueness index on reminder notification

Kabiru Mwenjad6cd81047452
diff --git a/db/migrate/20241121113638_create_reminder_notifications.rb b/db/migrate/20241121113638_create_reminder_notifications.rb
index 576e07c8f1e..eaa711b431e 100644
--- a/db/migrate/20241121113638_create_reminder_notifications.rb
+++ b/db/migrate/20241121113638_create_reminder_notifications.rb
@@ -6,5 +6,9 @@ class CreateReminderNotifications < ActiveRecord::Migration[7.1]
t.timestamps
end
+
+ add_index :reminder_notifications, :notification_id,
+ unique: true,
+ name: "index_reminder_notifications_unique"
end
end