aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/type.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-05-19 10:59:57 -0700
committerSean Griffin <sean@thoughtbot.com>2014-05-19 11:32:13 -0700
commitd0f8c46e1962b28d77209f367f12c2d2c77f4b12 (patch)
treea20b809cd5b17c706709a51594c0ab1480503c6c /activerecord/lib/active_record/connection_adapters/type.rb
parent09cc922ed31bf699b26fafe4822fc7048b821825 (diff)
downloadrails-d0f8c46e1962b28d77209f367f12c2d2c77f4b12.tar.gz
rails-d0f8c46e1962b28d77209f367f12c2d2c77f4b12.tar.bz2
rails-d0f8c46e1962b28d77209f367f12c2d2c77f4b12.zip
Remove :timestamp column type
The `:timestamp` type for columns is unused. All database adapters treat them as the same database type. All code in `ActiveRecord` which changes its behavior based on the column's type acts the same in both cases. However, when the type is passed to code that checks for the `:datetime` type, but not `:timestamp` (such as XML serialization), the result is unexpected behavior. Existing schema definitions will continue to work, and the `timestamp` type is transparently aliased to `datetime`.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/type.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/type.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/type.rb b/activerecord/lib/active_record/connection_adapters/type.rb
index 34b1e9e39e..0268e0d569 100644
--- a/activerecord/lib/active_record/connection_adapters/type.rb
+++ b/activerecord/lib/active_record/connection_adapters/type.rb
@@ -9,7 +9,6 @@ require 'active_record/connection_adapters/type/integer'
require 'active_record/connection_adapters/type/string'
require 'active_record/connection_adapters/type/text'
require 'active_record/connection_adapters/type/time'
-require 'active_record/connection_adapters/type/timestamp'
require 'active_record/connection_adapters/type/type_map'
module ActiveRecord