diff options
Diffstat (limited to 'db/migrate/20200304160823_add_index_to_service_unique_template_per_type.rb')
-rw-r--r-- | db/migrate/20200304160823_add_index_to_service_unique_template_per_type.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/db/migrate/20200304160823_add_index_to_service_unique_template_per_type.rb b/db/migrate/20200304160823_add_index_to_service_unique_template_per_type.rb deleted file mode 100644 index b81e5acf67f..00000000000 --- a/db/migrate/20200304160823_add_index_to_service_unique_template_per_type.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true - -class AddIndexToServiceUniqueTemplatePerType < ActiveRecord::Migration[6.0] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - disable_ddl_transaction! - - def up - add_concurrent_index(:services, [:type, :template], unique: true, where: 'template IS TRUE') - end - - def down - remove_concurrent_index(:services, [:type, :template]) - end -end |