Skip to content
Snippets Groups Projects

Fixes for the rename reserved paths helpers

Merged Bob Van Landuyt :neckbeard: requested to merge bvl-fix-incorrectly-renamed-routes into master
1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
@@ -41,8 +41,7 @@ module Gitlab
new_full_path)
update_column_in_batches(:routes, :path, replace_statement) do |table, query|
path_or_children = table[:path].eq(old_full_path)
.or(table[:path].matches("#{old_full_path}/%"))
path_or_children = table[:path].matches_any([old_full_path, "#{old_full_path}/%"])
query.where(path_or_children)
end
end
Loading