Merge branch 'master' into new-gui

Conflicts:
	Gemfile.lock
This commit is contained in:
Reinier Balt 2014-01-07 21:01:55 +01:00
parent fa537fbeb0
commit eb1502d4e0
28 changed files with 385 additions and 221 deletions

View file

@ -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)