aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2019-03-03 04:22:48 +0000
committerYasuo Honda <yasuo.honda@gmail.com>2019-03-03 04:55:17 +0000
commitdf79aa31e9a731cae949805754618571cd5307ad (patch)
tree4e40f56f595f4a6b3bf8a94f9565ac3d1b7c22e4 /activemodel
parentdfa439eefc7bfaa2f00bc8d2bd712d115dd0ef33 (diff)
downloadrails-df79aa31e9a731cae949805754618571cd5307ad.tar.gz
rails-df79aa31e9a731cae949805754618571cd5307ad.tar.bz2
rails-df79aa31e9a731cae949805754618571cd5307ad.zip
Rails `DateTime` type is mapped to Oracle `TIMESTAMP` since Rails 5.0
Kind of reverting https://github.com/rails/rails/commit/3a1cbc5c3b3bcb2de4be6e4469bb87b99759dc59 ``` From: test/cases/date_test.rb @ line 26 : 21: 22: invalid_dates = [[2007, 11, 31], [1993, 2, 29], [2007, 2, 29]] 23: 24: valid_dates.each do |date_src| 25: topic = Topic.new("last_read(1i)" => date_src[0].to_s, "last_read(2i)" => date_src[1].to_s, "last_read(3i)" => date_src[2].to_s) => 26: binding.irb 27: assert_equal(topic.last_read, Date.new(*date_src)) 28: end 29: 30: invalid_dates.each do |date_src| 31: assert_nothing_raised do irb(#<DateTest:0x0000556618194668>):001:0> topic.last_read.class => Date ``` Refer rsim/oracle-enhanced#845 rails/rails#25897
Diffstat (limited to 'activemodel')
0 files changed, 0 insertions, 0 deletions