d745ff0431
This new attribute is optional and used when set instead of the default format `gitlab+deploy-token-#{id}`. Empty usernames will be saved as null in the database. Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/50228.
9 lines
187 B
Ruby
9 lines
187 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddUsernameToDeployTokens < ActiveRecord::Migration[5.1]
|
|
DOWNTIME = false
|
|
|
|
def change
|
|
add_column :deploy_tokens, :username, :string
|
|
end
|
|
end
|