diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-03-06 08:36:10 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-03-06 08:41:43 +0900 |
commit | a7d6aa389343ee258f19a4fe71869f7ebf3a6a4d (patch) | |
tree | 8d0909fd687fe56ead303fe328ffabc13d9ac103 | |
parent | ddf4c953ae8d10489e0bfd6008bd76395f6e1267 (diff) | |
download | rails-a7d6aa389343ee258f19a4fe71869f7ebf3a6a4d.tar.gz rails-a7d6aa389343ee258f19a4fe71869f7ebf3a6a4d.tar.bz2 rails-a7d6aa389343ee258f19a4fe71869f7ebf3a6a4d.zip |
chage `date_time` type ` to `datetime`
Since we are using `datetime` in migration, better to use `datetime` is I think that confusion is less.
-rw-r--r-- | activerecord/lib/active_record/type.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |