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
3fa68cc6
Commit
3fa68cc6
authored
Jun 03, 2019
by
John T Skarbek
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/11-11-stable-patch-2' into 11-11-stable-patch-1
parents
2cc7155b
b1ea0cc4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
changelogs/unreleased/sh-fix-issue-58714.yml
changelogs/unreleased/sh-fix-issue-58714.yml
+5
-0
db/migrate/20180702134423_generate_missing_routes.rb
db/migrate/20180702134423_generate_missing_routes.rb
+1
-0
spec/migrations/generate_missing_routes_spec.rb
spec/migrations/generate_missing_routes_spec.rb
+1
-1
No files found.
changelogs/unreleased/sh-fix-issue-58714.yml
0 → 100644
View file @
3fa68cc6
---
title
:
Fix migration failure when groups are missing route
merge_request
:
29022
author
:
type
:
fixed
db/migrate/20180702134423_generate_missing_routes.rb
View file @
3fa68cc6
...
...
@@ -98,6 +98,7 @@ class GenerateMissingRoutes < ActiveRecord::Migration[4.2]
class
Namespace
<
ActiveRecord
::
Base
self
.
table_name
=
'namespaces'
self
.
inheritance_column
=
:_type_disabled
include
EachBatch
include
GenerateMissingRoutes
::
Routable
...
...
spec/migrations/generate_missing_routes_spec.rb
View file @
3fa68cc6
...
...
@@ -8,7 +8,7 @@ describe GenerateMissingRoutes, :migration do
let
(
:routes
)
{
table
(
:routes
)
}
it
'creates routes for projects without a route'
do
namespace
=
namespaces
.
create!
(
name:
'GitLab'
,
path:
'gitlab'
)
namespace
=
namespaces
.
create!
(
name:
'GitLab'
,
path:
'gitlab'
,
type:
'Group'
)
routes
.
create!
(
path:
'gitlab'
,
...
...
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