debian-mirror-gitlab/db/migrate/20230106131659_add_fingerprint_to_ssh_signatures.rb
2023-03-17 16:20:25 +05:30

13 lines
336 B
Ruby

# frozen_string_literal: true
class AddFingerprintToSshSignatures < Gitlab::Database::Migration[2.1]
disable_ddl_transaction!
def up
add_column :ssh_signatures, :key_fingerprint_sha256, :bytea, if_not_exists: true
end
def down
remove_column :ssh_signatures, :key_fingerprint_sha256, :bytea, if_exists: true
end
end