Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-09-16 17:46:19 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2015-09-16 17:46:19 +0300
commit7348d34cfdb50c1cc3efa2debb093e8019752ac2 (patch)
tree892b356dd498cce0ee0bd8d5d7f0d1348a491a65 /lib
parent5772faf19bcd859c01da167d3c756a1a2e2b5f7f (diff)
Fix migrate tags statement
Diffstat (limited to 'lib')
-rw-r--r--lib/ci/migrate/tags.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci/migrate/tags.rb b/lib/ci/migrate/tags.rb
index f4114c698d2..125a535e9a9 100644
--- a/lib/ci/migrate/tags.rb
+++ b/lib/ci/migrate/tags.rb
@@ -40,7 +40,7 @@ module Ci
tags = ActiveRecord::Base.connection.select_all(
'select ci_tags.name from ci_tags ' +
'join ci_taggings on ci_tags.id = ci_taggings.tag_id ' +
- "where taggable_type = #{ActiveRecord::Base::sanitize(type)} and taggable_id = #{ActiveRecord::Base::sanitize(id)} and context = \"tags\""
+ "where taggable_type = #{ActiveRecord::Base::sanitize(type)} and taggable_id = #{ActiveRecord::Base::sanitize(id)} and context = 'tags'"
)
tags.map { |tag| tag['name'] }
end