diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-01-20 14:39:29 +0300 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-01-24 13:25:43 +0300 |
commit | e4d402427c10c48651e3c306e7e3aabf094d1443 (patch) | |
tree | cd2a34116b5a0c8f33c57c9e4c8983b2f6d352c5 /db | |
parent | 5639c62b8935ce4394c9d168985330de1723af21 (diff) |
Reject projects without namespace
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20170104150317_requeue_pending_delete_projects.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/db/post_migrate/20170104150317_requeue_pending_delete_projects.rb b/db/post_migrate/20170104150317_requeue_pending_delete_projects.rb index c2265858000..f399950bd5e 100644 --- a/db/post_migrate/20170104150317_requeue_pending_delete_projects.rb +++ b/db/post_migrate/20170104150317_requeue_pending_delete_projects.rb @@ -41,6 +41,7 @@ class RequeuePendingDeleteProjects < ActiveRecord::Migration projects = Arel::Table.new(:projects) projects.project(projects[:id]). where(projects[:pending_delete].eq(true)). + where(projects[:namespace_id].not_eq(nil)). skip(@offset * BATCH_SIZE). take(BATCH_SIZE). to_sql |