diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-19 10:23:13 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-19 10:23:13 -0800 |
commit | 24174d1b3aa1b8ac4fec95f82f6204e2d095805d (patch) | |
tree | 353a0f4478bbfd92f8965727e804c5c04171e57a /activerecord/lib/active_record | |
parent | 9280fbf795d26146fe149514a32e22612b0311ee (diff) | |
download | rails-24174d1b3aa1b8ac4fec95f82f6204e2d095805d.tar.gz rails-24174d1b3aa1b8ac4fec95f82f6204e2d095805d.tar.bz2 rails-24174d1b3aa1b8ac4fec95f82f6204e2d095805d.zip |
this return value is not used, so stop returning it
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 9892c6c338..b303ff4225 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -327,11 +327,10 @@ module ActiveRecord when :down then announce "reverting" end - result = nil time = nil ActiveRecord::Base.connection_pool.with_connection do |conn| @connection = conn - time = Benchmark.measure { result = send(direction) } + time = Benchmark.measure { send(direction) } @connection = nil end @@ -339,8 +338,6 @@ module ActiveRecord when :up then announce "migrated (%.4fs)" % time.real; write when :down then announce "reverted (%.4fs)" % time.real; write end - - result end def write(text="") |