diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-07-24 20:20:03 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-07-24 20:20:26 -0300 |
commit | 2d9e5a26a10e5f83f9b3ac465bd45b2e15a0bc2a (patch) | |
tree | 08bd5ed78f12c3aecac9295889874cb9b0956294 /activerecord/test/cases/calculations_test.rb | |
parent | da84ccb6f04080d0f18f9bce35f773f193b1770b (diff) | |
download | rails-2d9e5a26a10e5f83f9b3ac465bd45b2e15a0bc2a.tar.gz rails-2d9e5a26a10e5f83f9b3ac465bd45b2e15a0bc2a.tar.bz2 rails-2d9e5a26a10e5f83f9b3ac465bd45b2e15a0bc2a.zip |
Deprecate update_column in favor of update_columns.
Closes #1190
Diffstat (limited to 'activerecord/test/cases/calculations_test.rb')
-rw-r--r-- | activerecord/test/cases/calculations_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/calculations_test.rb b/activerecord/test/cases/calculations_test.rb index 43c034703d..9a718756d0 100644 --- a/activerecord/test/cases/calculations_test.rb +++ b/activerecord/test/cases/calculations_test.rb @@ -331,8 +331,8 @@ class CalculationsTest < ActiveRecord::TestCase def test_should_count_scoped_select_with_options Account.update_all("credit_limit = NULL") - Account.last.update_column('credit_limit', 49) - Account.first.update_column('credit_limit', 51) + Account.last.update_columns('credit_limit' => 49) + Account.first.update_columns('credit_limit' => 51) assert_equal 1, Account.scoped(:select => "credit_limit").where('credit_limit >= 50').count end |