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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20230106125945_add_user_to_ssh_signatures.rb')
-rw-r--r--db/migrate/20230106125945_add_user_to_ssh_signatures.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20230106125945_add_user_to_ssh_signatures.rb b/db/migrate/20230106125945_add_user_to_ssh_signatures.rb
new file mode 100644
index 00000000000..9e487287b66
--- /dev/null
+++ b/db/migrate/20230106125945_add_user_to_ssh_signatures.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+class AddUserToSshSignatures < Gitlab::Database::Migration[2.1]
+ def up
+ add_column :ssh_signatures, :user_id, :bigint, if_not_exists: true, null: true
+ end
+
+ def down
+ remove_column :ssh_signatures, :user_id, if_exists: true
+ end
+end