diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-06-05 08:21:55 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-06-05 08:21:55 +0000 |
commit | 319107ae40bc00772f4eaf91ab9531097bc537cb (patch) | |
tree | ee98240c8add213a8e17bab7e86631cf80a158ed /activerecord/lib/active_record | |
parent | 8d6d450303235101a66624691e98986e0a8d6ff6 (diff) | |
download | rails-319107ae40bc00772f4eaf91ab9531097bc537cb.tar.gz rails-319107ae40bc00772f4eaf91ab9531097bc537cb.tar.bz2 rails-319107ae40bc00772f4eaf91ab9531097bc537cb.zip |
Migrations: report the number of rows affected when calling insert, update, delete, etc.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6945 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index bf247e1e5f..f7f9ad4634 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -257,6 +257,7 @@ module ActiveRecord result = nil time = Benchmark.measure { result = yield } say "%.4fs" % time.real, :subitem + say("#{result} rows", :subitem) if result.is_a?(Integer) result end |