Permalink
Browse files

replace find(all) with all

  • Loading branch information...
1 parent 5a79ca6 commit 532c294deaa495c227f0cc5181bc068d777a1f25 @vijaydev vijaydev committed Jun 25, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/lib/active_record/migration.rb
@@ -181,7 +181,7 @@ def initialize(name)
#
# class RemoveEmptyTags < ActiveRecord::Migration
# def up
- # Tag.find(:all).each { |tag| tag.destroy if tag.pages.empty? }
+ # Tag.all.each { |tag| tag.destroy if tag.pages.empty? }
# end
#
# def down
@@ -227,7 +227,7 @@ def initialize(name)
# def up
# add_column :people, :salary, :integer
# Person.reset_column_information
- # Person.find(:all).each do |p|
+ # Person.all.each do |p|
# p.update_attribute :salary, SalaryCalculator.compute(p)
# end
# end
@@ -247,7 +247,7 @@ def initialize(name)
# def up
# ...
# say_with_time "Updating salaries..." do
- # Person.find(:all).each do |p|
+ # Person.all.each do |p|
# p.update_attribute :salary, SalaryCalculator.compute(p)
# end
# end

0 comments on commit 532c294

Please sign in to comment.