summaryrefslogtreecommitdiff
path: root/db/post_migrate
diff options
context:
space:
mode:
authorMario de la Ossa <mariodelaossa@gmail.com>2018-08-16 19:05:07 -0600
committerMario de la Ossa <mariodelaossa@gmail.com>2018-08-20 22:20:41 -0600
commitbf3d1900cb637fc23c002a81a383935c1ea58a0e (patch)
tree3fa396845f32f9d2efe1b2b169e04431883a7874 /db/post_migrate
parente4e172a221a917e86a83c39daea5f3276377ed63 (diff)
downloadgitlab-ce-bf3d1900cb637fc23c002a81a383935c1ea58a0e.tar.gz
Backport of gitlab-org/gitlab-ee!6876ce-6752-jira-branches
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