gitlab-org--gitlab-foss/db/migrate/20191208071111_add_fingerprint_sha256_to_key.rb

14 lines
295 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class AddFingerprintSha256ToKey < ActiveRecord::Migration[5.0]
DOWNTIME = false
def up
add_column(:keys, :fingerprint_sha256, :binary)
end
def down
remove_column(:keys, :fingerprint_sha256) if column_exists?(:keys, :fingerprint_sha256)
end
end