From 601cb79582739229fe94c067194d60de3e25ac26 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Tue, 25 Jul 2017 13:04:28 +0900 Subject: [PATCH] Fix `test_add_column_with_timestamp_type` when using Oracle --- activerecord/test/cases/migration/change_schema_test.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/activerecord/test/cases/migration/change_schema_test.rb b/activerecord/test/cases/migration/change_schema_test.rb index 04e2d3a052..7b0644e9c0 100644 --- a/activerecord/test/cases/migration/change_schema_test.rb +++ b/activerecord/test/cases/migration/change_schema_test.rb @@ -273,6 +273,8 @@ module ActiveRecord assert_equal "timestamp without time zone", klass.columns_hash["foo"].sql_type elsif current_adapter?(:Mysql2Adapter) assert_equal "timestamp", klass.columns_hash["foo"].sql_type + elsif current_adapter?(:OracleAdapter) + assert_equal "TIMESTAMP(6)", klass.columns_hash["foo"].sql_type else assert_equal klass.connection.type_to_sql("datetime"), klass.columns_hash["foo"].sql_type end