Fix migrate tags statement
This commit is contained in:
parent
5772faf19b
commit
7348d34cfd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue