Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20181112103239_drop_default_value_on_status_deployments.rb')
-rw-r--r--db/migrate/20181112103239_drop_default_value_on_status_deployments.rb14
1 files changed, 0 insertions, 14 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
deleted file mode 100644
index 59d6d2f29ff..00000000000
--- a/db/migrate/20181112103239_drop_default_value_on_status_deployments.rb
+++ /dev/null
@@ -1,14 +0,0 @@
-# frozen_string_literal: true
-
-class DropDefaultValueOnStatusDeployments < ActiveRecord::Migration[4.2]
- DOWNTIME = false
- DEPLOYMENT_STATUS_SUCCESS = 2 # Equivalent to Deployment.state_machine.states['success'].value
-
- def up
- change_column_default :deployments, :status, nil
- end
-
- def down
- change_column_default :deployments, :status, DEPLOYMENT_STATUS_SUCCESS
- end
-end