Skip to content

Commit

Permalink
Fix: Missing uniqueness constraint for projects.identifier in the dat…
Browse files Browse the repository at this point in the history
…abase (#41975).

Patch by Hiroyuki Kano (user:hiropk).


git-svn-id: https://svn.redmine.org/redmine/trunk@23407 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
vividtone committed Dec 14, 2024
1 parent a7fad28 commit 331b955
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddUniqueIndexToProjectsIdentifier < ActiveRecord::Migration[7.2]
def change
add_index :projects, :identifier, :unique => true
end
end

0 comments on commit 331b955

Please sign in to comment.