OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/db/migrate/20210512121322_make_project...

11 lines
301 B

class MakeProjectIdentifierUnique < ActiveRecord::Migration[6.1]
def change
remove_index :projects, :identifier
begin
add_index :projects, :identifier, unique: true
rescue => e
raise "You have a duplicate project identifier in your database: #{e.message}"
end
end
end