Commit 0f793c6f authored by Shinya Maeda's avatar Shinya Maeda

Remove unnecessary code

parent 3610e9f3
# frozen_string_literal: true # frozen_string_literal: true
class DropDefaultValueOnStatusDeployments < ActiveRecord::Migration class DropDefaultValueOnStatusDeployments < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false DOWNTIME = false
DEPLOYMENT_STATUS_SUCCESS = 2 # Equivalent to Deployment.state_machine.states['success'].value DEPLOYMENT_STATUS_SUCCESS = 2 # Equivalent to Deployment.state_machine.states['success'].value
disable_ddl_transaction!
def up def up
change_column_default :deployments, :status, nil change_column_default :deployments, :status, nil
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment