From 319482d8fe49d70817ffa0f30ab6653b1ea9cbac Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Wed, 5 Sep 2012 13:06:28 +0200 Subject: postgres, map scaled intervals to string datatype (#7518) --- .../lib/active_record/connection_adapters/postgresql_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') 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)$/ -- cgit v1.2.3