Commit 7348d34c authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix migrate tags statement

parent 5772faf1
...@@ -40,7 +40,7 @@ module Ci ...@@ -40,7 +40,7 @@ module Ci
tags = ActiveRecord::Base.connection.select_all( tags = ActiveRecord::Base.connection.select_all(
'select ci_tags.name from ci_tags ' + 'select ci_tags.name from ci_tags ' +
'join ci_taggings on ci_tags.id = ci_taggings.tag_id ' + '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'] } tags.map { |tag| tag['name'] }
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment