diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2015-11-23 14:42:05 +0000 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2015-11-30 20:04:46 +0000 |
commit | 0dc8166536f708ad6d20325797484f4c0b0b4ae5 (patch) | |
tree | 9e485062d3c527436f9d3c11702847f25cfba01d /activerecord | |
parent | 404597b1a1e633e2dd835d7a52b07a9294a2a9fd (diff) | |
download | rails-0dc8166536f708ad6d20325797484f4c0b0b4ae5.tar.gz rails-0dc8166536f708ad6d20325797484f4c0b0b4ae5.tar.bz2 rails-0dc8166536f708ad6d20325797484f4c0b0b4ae5.zip |
Use adapter supports_datetime_with_precision to support 3rd party adapter tests
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/helper.rb b/activerecord/test/cases/helper.rb index d82a3040fc..07dbc8a53f 100644 --- a/activerecord/test/cases/helper.rb +++ b/activerecord/test/cases/helper.rb @@ -47,7 +47,7 @@ def in_memory_db? end def subsecond_precision_supported? - !current_adapter?(:MysqlAdapter, :Mysql2Adapter) || ActiveRecord::Base.connection.version >= '5.6.4' + ActiveRecord::Base.connection.supports_datetime_with_precision? end def mysql_enforcing_gtid_consistency? |