From a7d6aa389343ee258f19a4fe71869f7ebf3a6a4d Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sun, 6 Mar 2016 08:36:10 +0900 Subject: [PATCH] chage `date_time` type ` to `datetime` Since we are using `datetime` in migration, better to use `datetime` is I think that confusion is less. --- activerecord/lib/active_record/type.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/type.rb b/activerecord/lib/active_record/type.rb index e210e94f00..4911d93dd9 100644 --- a/activerecord/lib/active_record/type.rb +++ b/activerecord/lib/active_record/type.rb @@ -61,7 +61,7 @@ module ActiveRecord register(:binary, Type::Binary, override: false) register(:boolean, Type::Boolean, override: false) register(:date, Type::Date, override: false) - register(:date_time, Type::DateTime, override: false) + register(:datetime, Type::DateTime, override: false) register(:decimal, Type::Decimal, override: false) register(:float, Type::Float, override: false) register(:integer, Type::Integer, override: false)