debian-mirror-gitlab/db/migrate/20230126151622_add_ci_triggers_encrypted_token.rb

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

14 lines
351 B
Ruby
Raw Normal View History

2023-04-23 21:23:45 +05:30
# frozen_string_literal: true
class AddCiTriggersEncryptedToken < Gitlab::Database::Migration[2.1]
def up
add_column :ci_triggers, :encrypted_token, :binary
add_column :ci_triggers, :encrypted_token_iv, :binary
end
def down
remove_column :ci_triggers, :encrypted_token
remove_column :ci_triggers, :encrypted_token_iv
end
end