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
7fc35578
Commit
7fc35578
authored
Sep 03, 2020
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the table names explicitly
parent
8507a7cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
ee/lib/ee/gitlab/background_migration/populate_resolved_on_default_branch_column.rb
...d_migration/populate_resolved_on_default_branch_column.rb
+9
-1
No files found.
ee/lib/ee/gitlab/background_migration/populate_resolved_on_default_branch_column.rb
View file @
7fc35578
...
...
@@ -42,6 +42,8 @@ module EE
include
Visibility
include
::
Gitlab
::
Utils
::
StrongMemoize
self
.
table_name
=
'projects'
# These are the artifact file types to query
# only security report related artifacts.
# sast: 5
...
...
@@ -191,6 +193,8 @@ module EE
include
Routable
include
Visibility
self
.
table_name
=
'namespaces'
belongs_to
:parent
,
class_name:
'Namespace'
def
self
.
find_sti_class
(
type_name
)
...
...
@@ -204,10 +208,14 @@ module EE
end
end
class
Route
<
ActiveRecord
::
Base
;
end
class
Route
<
ActiveRecord
::
Base
self
.
table_name
=
'routes'
end
class
Vulnerability
<
ActiveRecord
::
Base
include
EachBatch
self
.
table_name
=
'vulnerabilities'
scope
:not_found_in_pipeline_id
,
->
(
pipeline_id
)
do
where
(
<<~
SQL
)
NOT EXISTS (
...
...
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