diff options
Diffstat (limited to 'db/migrate/20200221023320_add_index_on_pages_domain_on_domain_lowercase.rb')
-rw-r--r-- | db/migrate/20200221023320_add_index_on_pages_domain_on_domain_lowercase.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/db/migrate/20200221023320_add_index_on_pages_domain_on_domain_lowercase.rb b/db/migrate/20200221023320_add_index_on_pages_domain_on_domain_lowercase.rb deleted file mode 100644 index 53f8f5e7f81..00000000000 --- a/db/migrate/20200221023320_add_index_on_pages_domain_on_domain_lowercase.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -class AddIndexOnPagesDomainOnDomainLowercase < ActiveRecord::Migration[6.0] - include Gitlab::Database::MigrationHelpers - - DOWNTIME = false - - INDEX_NAME = 'index_pages_domains_on_domain_lowercase' - - disable_ddl_transaction! - - def up - add_concurrent_index :pages_domains, 'LOWER(domain)', name: INDEX_NAME - end - - def down - remove_concurrent_index_by_name :pages_domains, INDEX_NAME - end -end |