Permalink
Browse files

Merge pull request #29928 from koic/fix_test_add_column_with_timestam…

…p_type_oracle

Fix `test_add_column_with_timestamp_type` when using Oracle
  • Loading branch information...
eileencodes committed Jul 25, 2017
2 parents ec21b97 + 601cb79 commit 902aa87f582843cfacb4eadcb844ab144aaeedd0
Showing with 2 additions and 0 deletions.
  1. +2 −0 activerecord/test/cases/migration/change_schema_test.rb
@@ -273,6 +273,8 @@ def test_add_column_with_timestamp_type
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

0 comments on commit 902aa87

Please sign in to comment.