aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/timestamp_test.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-06-14 14:19:11 -0700
committerXavier Noria <fxn@hashref.com>2012-06-14 14:19:11 -0700
commit776fd51da02d243dc505c413e4a1d6f59b425436 (patch)
treea1ed7b362fe2fb219a0cb511e55c03d048a9b072 /activerecord/test/cases/timestamp_test.rb
parentb92860fa880a3cfe7863cb9f99d6e5c4245f8ae7 (diff)
parenta7f4b0a1231bf3c65db2ad4066da78c3da5ffb01 (diff)
downloadrails-776fd51da02d243dc505c413e4a1d6f59b425436.tar.gz
rails-776fd51da02d243dc505c413e4a1d6f59b425436.tar.bz2
rails-776fd51da02d243dc505c413e4a1d6f59b425436.zip
Merge pull request #6738 from steveklabnik/master
Remove update_attribute.
Diffstat (limited to 'activerecord/test/cases/timestamp_test.rb')
-rw-r--r--activerecord/test/cases/timestamp_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/timestamp_test.rb b/activerecord/test/cases/timestamp_test.rb
index 447aa29ffe..7df6993b30 100644
--- a/activerecord/test/cases/timestamp_test.rb
+++ b/activerecord/test/cases/timestamp_test.rb
@@ -11,7 +11,7 @@ class TimestampTest < ActiveRecord::TestCase
def setup
@developer = Developer.first
- @developer.update_attribute(:updated_at, Time.now.prev_month)
+ @developer.update_column(:updated_at, Time.now.prev_month)
@previously_updated_at = @developer.updated_at
end
@@ -133,7 +133,7 @@ class TimestampTest < ActiveRecord::TestCase
pet = Pet.first
owner = pet.owner
- owner.update_attribute(:happy_at, 3.days.ago)
+ owner.update_column(:happy_at, 3.days.ago)
previously_owner_updated_at = owner.updated_at
pet.name = "I'm a parrot"