classRemoveKeysFingerprintIndexIfExists<ActiveRecord::MigrationincludeGitlab::Database::MigrationHelpersdisable_ddl_transaction!# https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/250# That MR was added on gitlab-ee so we need to check if the index# already exists because we want to do is create an unique index instead.defupifindex_exists?(:keys,:fingerprint)remove_index:keys,:fingerprintendenddefdownunlessindex_exists?(:keys,:fingerprint)add_concurrent_index:keys,:fingerprintendendend