Skip to content

Commit

Permalink
improve example in migrations docs, closes #6370
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5275 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Oct 9, 2006
1 parent 02dc646 commit f65ab3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/lib/active_record/migration.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def initialize(version)
# add_column :people, :salary, :integer # add_column :people, :salary, :integer
# Person.reset_column_information # Person.reset_column_information
# Person.find(:all).each do |p| # Person.find(:all).each do |p|
# p.salary = SalaryCalculator.compute(p) # p.update_attribute :salary, SalaryCalculator.compute(p)
# end # end
# end # end
# end # end
Expand All @@ -177,7 +177,7 @@ def initialize(version)
# ... # ...
# say_with_time "Updating salaries..." do # say_with_time "Updating salaries..." do
# Person.find(:all).each do |p| # Person.find(:all).each do |p|
# p.salary = SalaryCalculator.compute(p) # p.update_attribute :salary, SalaryCalculator.compute(p)
# end # end
# end # end
# ... # ...
Expand Down

0 comments on commit f65ab3b

Please sign in to comment.