1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #29928 from koic/fix_test_add_column_with_timestamp_type_oracle

Fix `test_add_column_with_timestamp_type` when using Oracle
This commit is contained in:
Eileen M. Uchitelle 2017-07-25 07:52:14 -04:00 committed by GitHub
commit 902aa87f58

View file

@ -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