summaryrefslogtreecommitdiff
path: root/db
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
parente4e172a221a917e86a83c39daea5f3276377ed63 (diff)
downloadgitlab-ce-bf3d1900cb637fc23c002a81a383935c1ea58a0e.tar.gz
Backport of gitlab-org/gitlab-ee!6876ce-6752-jira-branches
Diffstat (limited to 'db')
-rw-r--r--db/post_migrate/20180816193530_rename_login_root_namespaces.rb16
-rw-r--r--db/schema.rb2
2 files changed, 17 insertions, 1 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
diff --git a/db/schema.rb b/db/schema.rb
index 9dc122b54b3..6168a1be29e 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20180809195358) do
+ActiveRecord::Schema.define(version: 20180816193530) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"