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