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:
commit
902aa87f58
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue