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

20230717142737_create_group_ssh_certificate.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b3b856dea7c7fd661e2f54b294aa6c09a1b95e20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class CreateGroupSshCertificate < Gitlab::Database::Migration[2.1]
  enable_lock_retries!

  def change
    create_table :group_ssh_certificates do |t|
      t.references :namespace, index: true, foreign_key: { on_delete: :cascade }, null: false
      t.datetime_with_timezone :created_at, null: false
      t.binary :fingerprint, null: false
      t.text :title, null: false, limit: 256
      t.text :key, null: false, limit: 512.kilobytes

      t.index :fingerprint, unique: true
    end
  end
end