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 280eeda4a5f20ee5e618014abac4993dd27aa881..a480c15e66b8778e90ef8cdb4e71fa6cc0349d29 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