Commit e4d40242 authored by Z.J. van de Weg's avatar Z.J. van de Weg

Reject projects without namespace

parent 5639c62b
...@@ -41,6 +41,7 @@ class RequeuePendingDeleteProjects < ActiveRecord::Migration ...@@ -41,6 +41,7 @@ class RequeuePendingDeleteProjects < ActiveRecord::Migration
projects = Arel::Table.new(:projects) projects = Arel::Table.new(:projects)
projects.project(projects[:id]). projects.project(projects[:id]).
where(projects[:pending_delete].eq(true)). where(projects[:pending_delete].eq(true)).
where(projects[:namespace_id].not_eq(nil)).
skip(@offset * BATCH_SIZE). skip(@offset * BATCH_SIZE).
take(BATCH_SIZE). take(BATCH_SIZE).
to_sql to_sql
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment