diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 16:16:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-11-18 16:16:36 +0300 |
commit | 311b0269b4eb9839fa63f80c8d7a58f32b8138a0 (patch) | |
tree | 07e7870bca8aed6d61fdcc810731c50d2c40af47 /db/migrate/20200928203531_create_alert_management_http_integrations.rb | |
parent | 27909cef6c4170ed9205afa7426b8d3de47cbb0c (diff) |
Add latest changes from gitlab-org/gitlab@14-5-stable-eev14.5.0-rc42
Diffstat (limited to 'db/migrate/20200928203531_create_alert_management_http_integrations.rb')
-rw-r--r-- | db/migrate/20200928203531_create_alert_management_http_integrations.rb | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/db/migrate/20200928203531_create_alert_management_http_integrations.rb b/db/migrate/20200928203531_create_alert_management_http_integrations.rb deleted file mode 100644 index fe13fe400e3..00000000000 --- a/db/migrate/20200928203531_create_alert_management_http_integrations.rb +++ /dev/null @@ -1,37 +0,0 @@ -# frozen_string_literal: true - -class CreateAlertManagementHttpIntegrations < ActiveRecord::Migration[6.0] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - UNIQUE_INDEX = 'index_http_integrations_on_active_and_project_and_endpoint' - - disable_ddl_transaction! - - def up - create_table :alert_management_http_integrations, if_not_exists: true do |t| - t.timestamps_with_timezone - t.bigint :project_id, index: true, null: false - t.boolean :active, null: false, default: false - t.text :encrypted_token, null: false - t.text :encrypted_token_iv, null: false - t.text :endpoint_identifier, null: false - t.text :name, null: false - end - - add_text_limit :alert_management_http_integrations, :encrypted_token, 255 - add_text_limit :alert_management_http_integrations, :encrypted_token_iv, 255 - add_text_limit :alert_management_http_integrations, :endpoint_identifier, 255 - add_text_limit :alert_management_http_integrations, :name, 255 - - add_index :alert_management_http_integrations, - [:active, :project_id, :endpoint_identifier], - unique: true, - name: UNIQUE_INDEX, - where: 'active' - end - - def down - drop_table :alert_management_http_integrations - end -end |