Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
e4d40242
Commit
e4d40242
authored
Jan 20, 2017
by
Z.J. van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reject projects without namespace
parent
5639c62b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
db/post_migrate/20170104150317_requeue_pending_delete_projects.rb
...migrate/20170104150317_requeue_pending_delete_projects.rb
+1
-0
No files found.
db/post_migrate/20170104150317_requeue_pending_delete_projects.rb
View file @
e4d40242
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment