Merge branch 'pj/fix-emacs-style' into 'master'
Fix syntax coloring on emacs See merge request gitlab-org/gitlab-ce!29844
This commit is contained in:
commit
e999e1de7b
|
@ -225,7 +225,10 @@ module Gitlab
|
||||||
# here is based on Rails' foreign_key_name() method, which unfortunately
|
# here is based on Rails' foreign_key_name() method, which unfortunately
|
||||||
# is private so we can't rely on it directly.
|
# is private so we can't rely on it directly.
|
||||||
def concurrent_foreign_key_name(table, column)
|
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
|
end
|
||||||
|
|
||||||
# Long-running migrations may take more than the timeout allowed by
|
# Long-running migrations may take more than the timeout allowed by
|
||||||
|
|
Loading…
Reference in New Issue