debian-mirror-gitlab/db/migrate/20200122161638_add_deploy_token_type_to_deploy_tokens.rb

18 lines
399 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
class AddDeployTokenTypeToDeployTokens < ActiveRecord::Migration[5.2]
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!
DOWNTIME = false
def up
2020-04-08 14:13:33 +05:30
add_column_with_default :deploy_tokens, :deploy_token_type, :integer, default: 2, limit: 2, allow_null: false
2020-03-13 15:44:24 +05:30
end
def down
remove_column :deploy_tokens, :deploy_token_type
end
end