diff options
Diffstat (limited to 'db/migrate/20220518183504_create_ssh_signatures.rb')
-rw-r--r-- | db/migrate/20220518183504_create_ssh_signatures.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20220518183504_create_ssh_signatures.rb b/db/migrate/20220518183504_create_ssh_signatures.rb new file mode 100644 index 00000000000..6708d3f295c --- /dev/null +++ b/db/migrate/20220518183504_create_ssh_signatures.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class CreateSshSignatures < Gitlab::Database::Migration[2.0] + def change + create_table :ssh_signatures do |t| + t.timestamps_with_timezone null: false + t.bigint :project_id, null: false, index: true + t.bigint :key_id, null: false, index: true + t.integer :verification_status, default: 0, null: false, limit: 2 + t.binary :commit_sha, null: false, index: { unique: true } + end + end +end |