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
6f31c3d0
Commit
6f31c3d0
authored
Jun 19, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
22c9b318
e999e1de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
lib/gitlab/database/migration_helpers.rb
lib/gitlab/database/migration_helpers.rb
+4
-1
No files found.
lib/gitlab/database/migration_helpers.rb
View file @
6f31c3d0
...
...
@@ -225,7 +225,10 @@ module Gitlab
# here is based on Rails' foreign_key_name() method, which unfortunately
# is private so we can't rely on it directly.
def
concurrent_foreign_key_name
(
table
,
column
)
"fk_
#{
Digest
::
SHA256
.
hexdigest
(
"
#{
table
}
_
#{
column
}
_fk"
).
first
(
10
)
}
"
identifier
=
"
#{
table
}
_
#{
column
}
_fk"
hashed_identifier
=
Digest
::
SHA256
.
hexdigest
(
identifier
).
first
(
10
)
"fk_
#{
hashed_identifier
}
"
end
# Long-running migrations may take more than the timeout allowed by
...
...
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