@@ -5,7 +5,7 class CreateProjectsTrackers < ActiveRecord::Migration | |||
|
5 | 5 | t.column :tracker_id, :integer, :default => 0, :null => false |
|
6 | 6 | end |
|
7 | 7 | add_index :projects_trackers, :project_id, :name => :projects_trackers_project_id |
|
8 | ||
|
8 | ||
|
9 | 9 | # Associates all trackers to all projects (as it was before) |
|
10 | 10 | tracker_ids = Tracker.find(:all).collect(&:id) |
|
11 | 11 | Project.find(:all).each do |project| |
General Comments 0
You need to be logged in to leave comments.
Login now