summaryrefslogtreecommitdiffstats
path: root/db/migrate/081_create_projects_trackers.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-02 20:28:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-12-02 20:28:37 +0000
commitabd921736b6db3a405c6505b3bf4022bb9097d41 (patch)
tree1cd6958b0826f9426b769cb5f41eccea52a71350 /db/migrate/081_create_projects_trackers.rb
parent536747b74708188848d85d8de5df34e7aa762006 (diff)
downloadredmine-abd921736b6db3a405c6505b3bf4022bb9097d41.tar.gz
redmine-abd921736b6db3a405c6505b3bf4022bb9097d41.zip
Replaces find(:all) calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10918 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate/081_create_projects_trackers.rb')
-rw-r--r--db/migrate/081_create_projects_trackers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/081_create_projects_trackers.rb b/db/migrate/081_create_projects_trackers.rb
index 193da07f6..ddb801d31 100644
--- a/db/migrate/081_create_projects_trackers.rb
+++ b/db/migrate/081_create_projects_trackers.rb
@@ -7,8 +7,8 @@ class CreateProjectsTrackers < ActiveRecord::Migration
add_index :projects_trackers, :project_id, :name => :projects_trackers_project_id
# Associates all trackers to all projects (as it was before)
- tracker_ids = Tracker.find(:all).collect(&:id)
- Project.find(:all).each do |project|
+ tracker_ids = Tracker.all.collect(&:id)
+ Project.all.each do |project|
project.tracker_ids = tracker_ids
end
end