debian-mirror-gitlab/db/migrate/20230126151622_add_ci_triggers_encrypted_token.rb
2023-04-23 21:23:45 +05:30

13 lines
351 B
Ruby

# 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