summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorRuben Davila <rdavila84@gmail.com>2016-12-21 22:18:41 -0500
committerRuben Davila <rdavila84@gmail.com>2016-12-21 22:18:41 -0500
commit0a2fb360eeb38afef81b40e756663dd301543fad (patch)
tree19dfd9d66c30fabeb4c6753d514edd6ac7d76761 /db
parenta0715f079c143a362a7f6157db45020b8432003e (diff)
downloadgitlab-ce-0a2fb360eeb38afef81b40e756663dd301543fad.tar.gz
Exclude non existent repository storages.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20161220141214_remove_dot_git_from_group_names.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20161220141214_remove_dot_git_from_group_names.rb b/db/migrate/20161220141214_remove_dot_git_from_group_names.rb
index bd0e4b2cc07..241afc6b097 100644
--- a/db/migrate/20161220141214_remove_dot_git_from_group_names.rb
+++ b/db/migrate/20161220141214_remove_dot_git_from_group_names.rb
@@ -61,7 +61,7 @@ class RemoveDotGitFromGroupNames < ActiveRecord::Migration
def move_namespace(group_id, path_was, path)
repository_storage_paths = select_all("SELECT distinct(repository_storage) FROM projects WHERE namespace_id = #{group_id}").map do |row|
Gitlab.config.repositories.storages[row['repository_storage']]
- end
+ end.compact
# Move the namespace directory in all storages paths used by member projects
repository_storage_paths.each do |repository_storage_path|