debian-mirror-gitlab/db/migrate/20230106125945_add_user_to_ssh_signatures.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
276 B
Ruby
Raw Normal View History

2023-03-17 16:20:25 +05:30
# 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