mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
fix mysql error on old migration. prevented ci from running
This commit is contained in:
parent
77778da0f8
commit
008d3d4c3d
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ class FixIncorrectlyHiddenTodos < ActiveRecord::Migration
|
|||
hidden_todos_without_project =
|
||||
Todo.where(:state => 'project_hidden', :project_id => nil)
|
||||
|
||||
active_projects = Project.where(:state => 'active')
|
||||
active_projects = Project.where(:state => 'active').select("id")
|
||||
hidden_todos_in_active_projects =
|
||||
Todo.where(:state => 'project_hidden').where("project_id IN (?)", active_projects)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue