aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorbUg <aleks.grebennik@gmail.com>2012-08-13 12:54:59 +0200
committerbUg <aleks.grebennik@gmail.com>2013-01-23 13:37:14 +0100
commitaf1ef85ad2b227c8d1fb4c90f814e5a8414faa92 (patch)
tree4b0e339d7395ea15a3ac0a51e9aa670d230fba50 /activerecord/CHANGELOG.md
parente20c0e3a8f17d716720d248d3db5f022f7cb021a (diff)
downloadrails-af1ef85ad2b227c8d1fb4c90f814e5a8414faa92.tar.gz
rails-af1ef85ad2b227c8d1fb4c90f814e5a8414faa92.tar.bz2
rails-af1ef85ad2b227c8d1fb4c90f814e5a8414faa92.zip
Add postgresql range types support
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index f1cca0ad76..278baee68f 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,24 @@
## Rails 4.0.0 (unreleased) ##
+* PostgreSQL ranges type support. Includes: int4range, int8range,
+ numrange, tsrange, tstzrange, daterange
+
+ Ranges can be created with inclusive and exclusive bounds.
+
+ Example:
+
+ create_table :Room do |t|
+ t.daterange :availability
+ end
+
+ Room.create(availability: (Date.today..Float::INFINITY))
+ Room.first.availability # => Wed, 19 Sep 2012..Infinity
+
+ One thing to note: Range class does not support exclusive lower
+ bound.
+
+ *Alexander Grebennik*
+
* Added a state instance variable to each transaction. Will allow other objects
to know whether a transaction has been committed or rolled back.