#2295: Fix for the migration bug in MySQL

This commit is contained in:
Jyri-Petteri Paloposki 2019-11-06 01:32:46 +02:00
parent 6ab14e6d3c
commit b94f2cdcfd

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