diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-03-27 19:12:28 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-03-27 21:47:38 -0300 |
commit | 245542ea2994961731be105db6c076256a22a7a9 (patch) | |
tree | 4780488d15d639f516d14b976bb5e077c6dbc3d9 /activerecord/test/cases/timestamp_test.rb | |
parent | e6a8a3adaf08cc9d551b4a125aaa276812984be3 (diff) | |
download | rails-245542ea2994961731be105db6c076256a22a7a9.tar.gz rails-245542ea2994961731be105db6c076256a22a7a9.tar.bz2 rails-245542ea2994961731be105db6c076256a22a7a9.zip |
Added new #update_column method.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/test/cases/timestamp_test.rb')
-rw-r--r-- | activerecord/test/cases/timestamp_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/cases/timestamp_test.rb b/activerecord/test/cases/timestamp_test.rb index 1c21f0f3b6..ceb1452afd 100644 --- a/activerecord/test/cases/timestamp_test.rb +++ b/activerecord/test/cases/timestamp_test.rb @@ -131,8 +131,9 @@ class TimestampTest < ActiveRecord::TestCase toy = Toy.first pet = toy.pet owner = pet.owner + time = 3.days.ago - owner.update_attribute(:updated_at, (time = 3.days.ago)) + owner.update_column(:updated_at, time) toy.touch owner.reload |