mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
#2295: Fix for the migration bug in MySQL
This commit is contained in:
parent
6ab14e6d3c
commit
b94f2cdcfd
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ class AddUserIdToTag < ActiveRecord::Migration[5.2]
|
||||||
|
|
||||||
# Find uses of each tag for both Todos and RecurringTodos to
|
# Find uses of each tag for both Todos and RecurringTodos to
|
||||||
# figure out which users use which tags.
|
# 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
|
SELECT t.id AS tid, tds.user_id AS todo_uid, rt.user_id AS rtodo_uid
|
||||||
FROM tags t
|
FROM tags t
|
||||||
JOIN taggings tgs ON tgs.tag_id = t.id
|
JOIN taggings tgs ON tgs.tag_id = t.id
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue