aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2016-07-20 12:07:20 +0000
committerYasuo Honda <yasuo.honda@gmail.com>2016-07-20 13:10:55 +0000
commitcc4abed844e74bb3d91267a7d01e7d902dc79779 (patch)
treeb78222ed4794735e64b4190b8143eece6a24ce90 /activerecord/test/models
parentd8bc0964d29837407efe425d7a65ab9a27d96e82 (diff)
downloadrails-cc4abed844e74bb3d91267a7d01e7d902dc79779.tar.gz
rails-cc4abed844e74bb3d91267a7d01e7d902dc79779.tar.bz2
rails-cc4abed844e74bb3d91267a7d01e7d902dc79779.zip
Oracle TIMESTAMP sql type is associated with Rails `DateTime` type now
- Refer https://github.com/rsim/oracle-enhanced/pull/845 Remove `set_date_columns` which has been deprecated in Oracle enhanced adapter - Refer https://github.com/rsim/oracle-enhanced/pull/869
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/topic.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/test/models/topic.rb b/activerecord/test/models/topic.rb
index 176bc79dc7..21c23ed2a2 100644
--- a/activerecord/test/models/topic.rb
+++ b/activerecord/test/models/topic.rb
@@ -43,12 +43,6 @@ class Topic < ActiveRecord::Base
before_create :default_written_on
before_destroy :destroy_children
- # Explicitly define as :date column so that returned Oracle DATE values would be typecasted to Date and not Time.
- # Some tests depend on assumption that this attribute will have Date values.
- if current_adapter?(:OracleEnhancedAdapter)
- set_date_columns :last_read
- end
-
def parent
Topic.find(parent_id)
end