Mercurial > hg > soundsoftware-site
diff db/migrate/20090312194159_add_projects_trackers_unique_index.rb @ 1464:261b3d9a4903 redmine-2.4
Update to Redmine 2.4 branch rev 12663
author | Chris Cannam |
---|---|
date | Tue, 14 Jan 2014 14:37:42 +0000 |
parents | 513646585e45 |
children |
line wrap: on
line diff
--- a/db/migrate/20090312194159_add_projects_trackers_unique_index.rb Fri Jun 14 09:05:06 2013 +0100 +++ b/db/migrate/20090312194159_add_projects_trackers_unique_index.rb Tue Jan 14 14:37:42 2014 +0000 @@ -10,7 +10,7 @@ # Removes duplicates in projects_trackers table def self.remove_duplicates - Project.find(:all).each do |project| + Project.all.each do |project| ids = project.trackers.collect(&:id) unless ids == ids.uniq project.trackers.clear