aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorTroy Kruthoff <tkruthoff@gmail.com>2013-03-01 09:12:30 -0800
committerTroy Kruthoff <tkruthoff@gmail.com>2013-03-01 09:51:23 -0800
commit2cc09441c2de57b024b11ba666ba1e72c2b20cfe (patch)
tree4595e1cd51c5fbaaa452a57e40f224808b3a91d8 /activerecord/CHANGELOG.md
parentb49a2a779ba6deba108d1f842ab5b7bc7460aa14 (diff)
downloadrails-2cc09441c2de57b024b11ba666ba1e72c2b20cfe.tar.gz
rails-2cc09441c2de57b024b11ba666ba1e72c2b20cfe.tar.bz2
rails-2cc09441c2de57b024b11ba666ba1e72c2b20cfe.zip
Fix PostgreSQL TIMESTAMP WITH TIME ZONE to return ActiveSupport::Time
In an AR model a timestamptz attribute would return a ruby string and AR tests did not check for any type casting. Previous tests would pass only because an assert_equal was being used on a Time.utc object, which will parse the right side of the eq to a valid Time instance for comparision. switch to test instance of Time instead of ActiveSupport::TimeWithZone
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 235a91fafa..7c19539136 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,10 @@
## Rails 4.0.0 (unreleased) ##
+* Postgresql timestamp with time zone (timestamptz) datatype now returns a
+ ActiveSupport::TimeWithZone instance instead of a string
+
+ *Troy Kruthoff*
+
* Added support for creating a table via Rails migration generator.
For example,