diff options
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index b908c10049..a115291101 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -354,6 +354,8 @@ module ActiveRecord when /^timestamp/i then 'datetime' when /^real|^money/i then 'float' when /^interval/i then 'string' + # geometric types (the line type is currently not implemented in postgresql) + when /^point|lseg|box|path|polygon|circle/i then 'string' when /^bytea/i then 'binary' else field_type # Pass through standard types. end |