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:
authorMario de la Ossa <mariodelaossa@gmail.com>2018-08-17 04:05:07 +0300
committerMario de la Ossa <mariodelaossa@gmail.com>2018-08-21 07:20:41 +0300
commitbf3d1900cb637fc23c002a81a383935c1ea58a0e (patch)
tree3fa396845f32f9d2efe1b2b169e04431883a7874 /db/post_migrate
parente4e172a221a917e86a83c39daea5f3276377ed63 (diff)
Backport of gitlab-org/gitlab-ee!6876
Diffstat (limited to 'db/post_migrate')
-rw-r--r--db/post_migrate/20180816193530_rename_login_root_namespaces.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/db/post_migrate/20180816193530_rename_login_root_namespaces.rb b/db/post_migrate/20180816193530_rename_login_root_namespaces.rb
new file mode 100644
index 00000000000..60cec24eed6
--- /dev/null
+++ b/db/post_migrate/20180816193530_rename_login_root_namespaces.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+class RenameLoginRootNamespaces < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+ include Gitlab::Database::RenameReservedPathsMigration::V1
+
+ DOWNTIME = false
+
+ # We're taking over the /login namespace as part of a fix for the Jira integration
+ def up
+ rename_root_paths 'login'
+ end
+
+ def down
+ revert_renames
+ end
+end