Merge pull request #2296 from ZeiP/tags_migration_bug

#2295: Fix for the migration bug in MySQL
This commit is contained in:
Matt Rogers 2019-11-06 08:45:41 -06:00 committed by GitHub
commit b5ff9a1bb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ class AddUserIdToTag < ActiveRecord::Migration[5.2]
# Find uses of each tag for both Todos and RecurringTodos to
# figure out which users use which tags.
@tags = execute <<-EOQ
@tags = exec_query <<-EOQ
SELECT t.id AS tid, tds.user_id AS todo_uid, rt.user_id AS rtodo_uid
FROM tags t
JOIN taggings tgs ON tgs.tag_id = t.id