aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-03-06 14:31:38 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-06 14:31:38 +0000
commit36a9eff957c29cbb5fd8654c24fef6bfc94b92d4 (patch)
tree0917aede866fe38352ec4073b411d9ab021cfbda /activerecord/lib/active_record
parent4ef7bfb0166cb45428861ce9e001838ab9a2796f (diff)
downloadrails-36a9eff957c29cbb5fd8654c24fef6bfc94b92d4.tar.gz
rails-36a9eff957c29cbb5fd8654c24fef6bfc94b92d4.tar.bz2
rails-36a9eff957c29cbb5fd8654c24fef6bfc94b92d4.zip
Added support for timestamp with time zone in PostgreSQL #560 [Scott Barron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@858 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb1
1 files changed, 1 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 b7ca509ef8..f9719b9f2b 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -188,6 +188,7 @@ module ActiveRecord
when 'numeric', 'real', 'money' then 'float'
when 'character varying', 'interval' then 'string'
when 'timestamp without time zone' then 'datetime'
+ when 'timestamp with time zone' then 'datetime'
when 'bytea' then 'binary'
else field_type
end