aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Moss <maclover7@users.noreply.github.com>2016-01-22 07:37:33 -0500
committerJon Moss <maclover7@users.noreply.github.com>2016-01-22 07:37:33 -0500
commit9e4534c4730b8e8ed5c249d4bf3527fb597a1a98 (patch)
tree2261e0105b86b97691a531e625b24410bcbd713b
parent8383f79d9207df149c533e220776bdae218cc51d (diff)
parent21f0136fc7c389751fec975823f99695eb7db3f9 (diff)
downloadrails-9e4534c4730b8e8ed5c249d4bf3527fb597a1a98.tar.gz
rails-9e4534c4730b8e8ed5c249d4bf3527fb597a1a98.tar.bz2
rails-9e4534c4730b8e8ed5c249d4bf3527fb597a1a98.zip
Merge pull request #23182 from palkan/add-docs-tsrange
[ci skip] Add note about tsrange and timezone awareness to docs
-rw-r--r--activerecord/lib/active_record/timestamp.rb6
1 files changed, 5 insertions, 1 deletions
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:
#