diff options
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20241213003659_add_unique_index_to_projects_identifier.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |