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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
d7324f97
Commit
d7324f97
authored
Jan 29, 2019
by
Jasper Maes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix deprecation: uniq is deprecated and will be removed from Rails 5.1
parent
b70647d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
db/fixtures/development/20_vulnerabilities.rb
db/fixtures/development/20_vulnerabilities.rb
+1
-1
ee/changelogs/unreleased/deprecated-uniq.yml
ee/changelogs/unreleased/deprecated-uniq.yml
+5
-0
No files found.
db/fixtures/development/20_vulnerabilities.rb
View file @
d7324f97
...
...
@@ -124,7 +124,7 @@ class Gitlab::Seeder::Vulnerabilities
end
Gitlab
::
Seeder
.
quiet
do
Project
.
joins
(
:ci_pipelines
).
uniq
.
all
.
sample
(
5
).
each
do
|
project
|
Project
.
joins
(
:ci_pipelines
).
distinct
.
all
.
sample
(
5
).
each
do
|
project
|
seeder
=
Gitlab
::
Seeder
::
Vulnerabilities
.
new
(
project
)
seeder
.
seed!
end
...
...
ee/changelogs/unreleased/deprecated-uniq.yml
0 → 100644
View file @
d7324f97
---
title
:
'
Fix
deprecation:
uniq
is
deprecated
and
will
be
removed
from
Rails
5.1'
merge_request
:
9348
author
:
Jasper Maes
type
:
other
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