Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20191208071111_add_fingerprint_sha256_to_key.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1bc87357f7db11529aa7f4cd8bbda6b6e0a694ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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