diff options
-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 |