diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-16 17:46:19 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-16 17:46:19 +0300 |
commit | 7348d34cfdb50c1cc3efa2debb093e8019752ac2 (patch) | |
tree | 892b356dd498cce0ee0bd8d5d7f0d1348a491a65 | |
parent | 5772faf19bcd859c01da167d3c756a1a2e2b5f7f (diff) |
Fix migrate tags statement
-rw-r--r-- | lib/ci/migrate/tags.rb | 2 |
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 |