diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-01-20 12:39:29 +0100 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-01-24 11:25:43 +0100 |
commit | e4d402427c10c48651e3c306e7e3aabf094d1443 (patch) | |
tree | cd2a34116b5a0c8f33c57c9e4c8983b2f6d352c5 /db/post_migrate | |
parent | 5639c62b8935ce4394c9d168985330de1723af21 (diff) | |
download | gitlab-ce-e4d402427c10c48651e3c306e7e3aabf094d1443.tar.gz |
Reject projects without namespacezj-requeue-pending-delete
Diffstat (limited to 'db/post_migrate')
-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 |