diff options
author | Bob Van Landuyt <bob@gitlab.com> | 2017-06-12 11:03:28 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-06-26 17:49:30 +0200 |
commit | c98ed42d01d4a15ce2a588079601b7d620b029ff (patch) | |
tree | cccc3b845de9636f2c9ab302b5775866492b9f78 /lib | |
parent | 152cba56e4004de1b1c2accee77e40a019d8c667 (diff) | |
download | gitlab-ce-c98ed42d01d4a15ce2a588079601b7d620b029ff.tar.gz |
Revert renames from a migration
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/database/rename_reserved_paths_migration/v1.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab/database/rename_reserved_paths_migration/v1.rb b/lib/gitlab/database/rename_reserved_paths_migration/v1.rb index 89530082cd2..f333ff22300 100644 --- a/lib/gitlab/database/rename_reserved_paths_migration/v1.rb +++ b/lib/gitlab/database/rename_reserved_paths_migration/v1.rb @@ -29,6 +29,11 @@ module Gitlab paths = Array(paths) RenameNamespaces.new(paths, self).rename_namespaces(type: :top_level) end + + def revert_renames + RenameProjects.new([], self).revert_renames + RenameNamespaces.new([], self).revert_renames + end end end end |