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
Jérome Perrin
gitlab-ce
Commits
79cdacc5
Commit
79cdacc5
authored
Jun 21, 2017
by
Bob Van Landuyt
Committed by
Bob Van Landuyt
Jun 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable statement timeout
parent
66ba0b0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
db/post_migrate/20170525140254_rename_all_reserved_paths_again.rb
...migrate/20170525140254_rename_all_reserved_paths_again.rb
+4
-0
No files found.
db/post_migrate/20170525140254_rename_all_reserved_paths_again.rb
View file @
79cdacc5
...
@@ -98,12 +98,16 @@ class RenameAllReservedPathsAgain < ActiveRecord::Migration
...
@@ -98,12 +98,16 @@ class RenameAllReservedPathsAgain < ActiveRecord::Migration
]
.
freeze
]
.
freeze
def
up
def
up
disable_statement_timeout
TOP_LEVEL_ROUTES
.
each
{
|
route
|
rename_root_paths
(
route
)
}
TOP_LEVEL_ROUTES
.
each
{
|
route
|
rename_root_paths
(
route
)
}
PROJECT_WILDCARD_ROUTES
.
each
{
|
route
|
rename_wildcard_paths
(
route
)
}
PROJECT_WILDCARD_ROUTES
.
each
{
|
route
|
rename_wildcard_paths
(
route
)
}
GROUP_ROUTES
.
each
{
|
route
|
rename_child_paths
(
route
)
}
GROUP_ROUTES
.
each
{
|
route
|
rename_child_paths
(
route
)
}
end
end
def
down
def
down
disable_statement_timeout
revert_renames
revert_renames
end
end
end
end
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