summaryrefslogtreecommitdiff
path: root/db/migrate/20200710130234_add_limit_constraints_to_project_incident_management_settings_token.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20200710130234_add_limit_constraints_to_project_incident_management_settings_token.rb')
-rw-r--r--db/migrate/20200710130234_add_limit_constraints_to_project_incident_management_settings_token.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/db/migrate/20200710130234_add_limit_constraints_to_project_incident_management_settings_token.rb b/db/migrate/20200710130234_add_limit_constraints_to_project_incident_management_settings_token.rb
deleted file mode 100644
index 8af927d0959..00000000000
--- a/db/migrate/20200710130234_add_limit_constraints_to_project_incident_management_settings_token.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-# frozen_string_literal: true
-
-class AddLimitConstraintsToProjectIncidentManagementSettingsToken < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- def up
- add_check_constraint :project_incident_management_settings, 'octet_length(encrypted_pagerduty_token) <= 255', 'pagerduty_token_length_constraint'
- add_check_constraint :project_incident_management_settings, 'octet_length(encrypted_pagerduty_token_iv) <= 12', 'pagerduty_token_iv_length_constraint'
- end
-
- def down
- remove_check_constraint :project_incident_management_settings, 'pagerduty_token_length_constraint'
- remove_check_constraint :project_incident_management_settings, 'pagerduty_token_iv_length_constraint'
- end
-end