2020-01-29 21:09:22 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddDeployTokenTypeToDeployTokens < ActiveRecord::Migration[5.2]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
2020-02-27 21:09:17 +00:00
|
|
|
add_column_with_default :deploy_tokens, :deploy_token_type, :integer, default: 2, limit: 2, allow_null: false
|
2020-01-29 21:09:22 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :deploy_tokens, :deploy_token_type
|
|
|
|
end
|
|
|
|
end
|