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
Files
2
@@ -41,7 +41,9 @@ module Gitlab
new_full_path)
update_column_in_batches(:routes, :path, replace_statement) do |table, query|
query.where(MigrationClasses::Route.arel_table[:path].matches("#{old_full_path}%"))
path_or_children = table[:path].eq(old_full_path)
.or(table[:path].matches("#{old_full_path}/%"))
query.where(path_or_children)
end
end
Loading