aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorpalkan <dementiev.vm@gmail.com>2016-01-22 11:51:16 +0300
committerpalkan <dementiev.vm@gmail.com>2016-01-22 14:35:52 +0300
commit21f0136fc7c389751fec975823f99695eb7db3f9 (patch)
tree2261e0105b86b97691a531e625b24410bcbd713b /activerecord
parent8383f79d9207df149c533e220776bdae218cc51d (diff)
downloadrails-21f0136fc7c389751fec975823f99695eb7db3f9.tar.gz
rails-21f0136fc7c389751fec975823f99695eb7db3f9.tar.bz2
rails-21f0136fc7c389751fec975823f99695eb7db3f9.zip
[ci skip] Add note about tsrange and timezone awareness to docs
Diffstat (limited to 'activerecord')
-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:
#