From 0f793c6f2c47daa55df4568d992cd1a2522719c6 Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Mon, 19 Nov 2018 17:47:52 +0900 Subject: Remove unnecessary code --- db/migrate/20181112103239_drop_default_value_on_status_deployments.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/db/migrate/20181112103239_drop_default_value_on_status_deployments.rb b/db/migrate/20181112103239_drop_default_value_on_status_deployments.rb index 280eeda4a5f..a480c15e66b 100644 --- a/db/migrate/20181112103239_drop_default_value_on_status_deployments.rb +++ b/db/migrate/20181112103239_drop_default_value_on_status_deployments.rb @@ -1,13 +1,9 @@ # frozen_string_literal: true class DropDefaultValueOnStatusDeployments < ActiveRecord::Migration - include Gitlab::Database::MigrationHelpers - DOWNTIME = false DEPLOYMENT_STATUS_SUCCESS = 2 # Equivalent to Deployment.state_machine.states['success'].value - disable_ddl_transaction! - def up change_column_default :deployments, :status, nil end -- cgit v1.2.1