aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorYves Senn <yves.senn@garaio.com>2012-09-05 13:06:28 +0200
committerYves Senn <yves.senn@garaio.com>2012-09-06 18:01:34 +0200
commit319482d8fe49d70817ffa0f30ab6653b1ea9cbac (patch)
tree5d239c92bc93cee89dce148082644cdbe0c0f78d /activerecord/lib
parente8c9f0513da0fac45ba585cf62739da57603f4ed (diff)
downloadrails-319482d8fe49d70817ffa0f30ab6653b1ea9cbac.tar.gz
rails-319482d8fe49d70817ffa0f30ab6653b1ea9cbac.tar.bz2
rails-319482d8fe49d70817ffa0f30ab6653b1ea9cbac.zip
postgres, map scaled intervals to string datatype (#7518)
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
index c508afb33e..d1751d70c6 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -181,7 +181,7 @@ module ActiveRecord
# Date/time types
when /^timestamp with(?:out)? time zone$/
:datetime
- when 'interval'
+ when /^interval(?:|\(\d+\))$/
:string
# Geometric types
when /^(?:point|line|lseg|box|"?path"?|polygon|circle)$/