Replaces find(:all) calls.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10918 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2012-12-02 20:28:37 +00:00
1 parent 536747b747
commit abd921736b
16 files changed
+21 -21

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
class AddTrackerPosition < ActiveRecord::Migration
def self.up
add_column :trackers, :position, :integer, :default => 1
Tracker.find(:all).each_with_index {|tracker, i| tracker.update_attribute(:position, i+1)}
Tracker.all.each_with_index {|tracker, i| tracker.update_attribute(:position, i+1)}
end
def self.down