mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-21 21:40:48 +02:00
Merge pull request #2296 from ZeiP/tags_migration_bug
#2295: Fix for the migration bug in MySQL
This commit is contained in:
commit
b5ff9a1bb8
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
|
||||
# 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue