diff options
author | Marcel Molina <marcel@vernix.org> | 2005-10-09 00:52:25 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2005-10-09 00:52:25 +0000 |
commit | e30699f66034405de0eaaad12066c2c7d266762f (patch) | |
tree | 3417968e16db343b7166d5cb507ee4df1a940e02 /activerecord/lib/active_record | |
parent | 24b9d2fe7115362677ed940b9e6117b185c1c1b2 (diff) | |
download | rails-e30699f66034405de0eaaad12066c2c7d266762f.tar.gz rails-e30699f66034405de0eaaad12066c2c7d266762f.tar.bz2 rails-e30699f66034405de0eaaad12066c2c7d266762f.zip |
Add geometric type for postgresql adapter. Closes #2233.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2498 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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 |