diff options
author | Xavier Noria <fxn@hashref.com> | 2012-06-14 14:18:25 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2012-06-14 14:18:25 -0700 |
commit | 63bcfbb2386ac974a0087476a0c58634963a0be9 (patch) | |
tree | 0e7e95fc11f3af7641cc30f0255acd0d31e76d06 /activerecord/test/cases/timestamp_test.rb | |
parent | e7d1849be176f456002b5d0de260e5235bd1eba7 (diff) | |
parent | b081f6b59fb3f15d12043072ad9b331ffd2bc56e (diff) | |
download | rails-63bcfbb2386ac974a0087476a0c58634963a0be9.tar.gz rails-63bcfbb2386ac974a0087476a0c58634963a0be9.tar.bz2 rails-63bcfbb2386ac974a0087476a0c58634963a0be9.zip |
Merge pull request #6739 from steveklabnik/3-2-stable
Deprecate update_attribute
Diffstat (limited to 'activerecord/test/cases/timestamp_test.rb')
-rw-r--r-- | activerecord/test/cases/timestamp_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/timestamp_test.rb b/activerecord/test/cases/timestamp_test.rb index 28543a5a3a..c965371a49 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.order(:id).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" |