From 331b955f47412e3b449d6ca6c5b86ffc7b708f28 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 14 Dec 2024 03:29:00 +0000 Subject: Fix: Missing uniqueness constraint for projects.identifier in the database (#41975). Patch by Hiroyuki Kano (user:hiropk). git-svn-id: https://svn.redmine.org/redmine/trunk@23407 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- db/migrate/20241213003659_add_unique_index_to_projects_identifier.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20241213003659_add_unique_index_to_projects_identifier.rb diff --git a/db/migrate/20241213003659_add_unique_index_to_projects_identifier.rb b/db/migrate/20241213003659_add_unique_index_to_projects_identifier.rb new file mode 100644 index 000000000..dbfe9c56f --- /dev/null +++ b/db/migrate/20241213003659_add_unique_index_to_projects_identifier.rb @@ -0,0 +1,5 @@ +class AddUniqueIndexToProjectsIdentifier < ActiveRecord::Migration[7.2] + def change + add_index :projects, :identifier, :unique => true + end +end -- cgit v1.2.3