aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/column.rb
diff options
context:
space:
mode:
authorAlexey <leopard.not.a@gmail.com>2012-12-16 04:10:58 +0200
committerAlexey <leopard.not.a@gmail.com>2012-12-16 13:11:10 +0200
commit9a4a095ed7ea6f0f65cc9e3bf3258cbdd0ddc210 (patch)
treeb5d59edd3a6b8476f6cb09465fe5dc80e66c892a /activerecord/lib/active_record/connection_adapters/column.rb
parent2d6abcce55c9024e2ef8753ab710b8a053e96eec (diff)
downloadrails-9a4a095ed7ea6f0f65cc9e3bf3258cbdd0ddc210.tar.gz
rails-9a4a095ed7ea6f0f65cc9e3bf3258cbdd0ddc210.tar.bz2
rails-9a4a095ed7ea6f0f65cc9e3bf3258cbdd0ddc210.zip
AR supporting new intrange data type on PostgreSQL >= 9.2
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/column.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/column.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/column.rb b/activerecord/lib/active_record/connection_adapters/column.rb
index df23dbfb60..fd36a5b075 100644
--- a/activerecord/lib/active_record/connection_adapters/column.rb
+++ b/activerecord/lib/active_record/connection_adapters/column.rb
@@ -126,6 +126,7 @@ module ActiveRecord
when :hstore then "#{klass}.string_to_hstore(#{var_name})"
when :inet, :cidr then "#{klass}.string_to_cidr(#{var_name})"
when :json then "#{klass}.string_to_json(#{var_name})"
+ when :intrange then "#{klass}.string_to_intrange(#{var_name})"
else var_name
end
end