aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/timestamp_test.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2012-06-14 14:18:25 -0700
committerXavier Noria <fxn@hashref.com>2012-06-14 14:18:25 -0700
commit63bcfbb2386ac974a0087476a0c58634963a0be9 (patch)
tree0e7e95fc11f3af7641cc30f0255acd0d31e76d06 /activerecord/test/cases/timestamp_test.rb
parente7d1849be176f456002b5d0de260e5235bd1eba7 (diff)
parentb081f6b59fb3f15d12043072ad9b331ffd2bc56e (diff)
downloadrails-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.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 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"