diff options
Diffstat (limited to 'db/migrate/081_create_projects_trackers.rb')
-rw-r--r-- | db/migrate/081_create_projects_trackers.rb | 4 |
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 |