From 21f0136fc7c389751fec975823f99695eb7db3f9 Mon Sep 17 00:00:00 2001
From: palkan <dementiev.vm@gmail.com>
Date: Fri, 22 Jan 2016 11:51:16 +0300
Subject: [ci skip] Add note about tsrange and timezone awareness to docs

---
 activerecord/lib/active_record/timestamp.rb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'activerecord')

diff --git a/activerecord/lib/active_record/timestamp.rb b/activerecord/lib/active_record/timestamp.rb
index a572c109d8..d9c18a5e38 100644
--- a/activerecord/lib/active_record/timestamp.rb
+++ b/activerecord/lib/active_record/timestamp.rb
@@ -16,7 +16,7 @@ module ActiveRecord
   # == Time Zone aware attributes
   #
   # Active Record keeps all the <tt>datetime</tt> and <tt>time</tt> columns
-  # time-zone aware. By default, these values are stored in the database as UTC
+  # timezone aware. By default, these values are stored in the database as UTC
   # and converted back to the current <tt>Time.zone</tt> when pulled from the database.
   #
   # This feature can be turned off completely by setting:
@@ -28,6 +28,10 @@ module ActiveRecord
   #
   #   ActiveRecord::Base.time_zone_aware_types = [:datetime]
   #
+  # You can also add database specific timezone aware types. For example, for PostgreSQL:
+  #
+  #   ActiveRecord::Base.time_zone_aware_types += [:tsrange, :tstzrange]
+  #
   # Finally, you can indicate specific attributes of a model for which time zone
   # conversion should not applied, for instance by setting:
   #
-- 
cgit v1.2.3