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/post_migrate/20201019094741_rename_sitemap_root_namespaces.rb')
-rw-r--r--db/post_migrate/20201019094741_rename_sitemap_root_namespaces.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/db/post_migrate/20201019094741_rename_sitemap_root_namespaces.rb b/db/post_migrate/20201019094741_rename_sitemap_root_namespaces.rb
deleted file mode 100644
index 20812a53bfb..00000000000
--- a/db/post_migrate/20201019094741_rename_sitemap_root_namespaces.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-# frozen_string_literal: true
-
-class RenameSitemapRootNamespaces < ActiveRecord::Migration[6.0]
- include Gitlab::Database::MigrationHelpers
- include Gitlab::Database::RenameReservedPathsMigration::V1
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- # We're taking over the /sitemap.xml and /sitemap.xml.gz namespaces
- # since they're necessary for the default behavior of Sitemaps
- def up
- disable_statement_timeout do
- rename_root_paths(['sitemap.xml', 'sitemap.xml.gz'])
- end
- end
-
- def down
- disable_statement_timeout do
- revert_renames
- end
- end
-end