aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-01-02 10:35:20 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-01-02 10:50:21 +0900
commitfb6743acc58495a63bca54221da9f38ce8227d3a (patch)
tree1f1011bf679dc1e8602230caf0812a3626121f8f /activerecord
parented51351536294b5cee9923727f401c5eb4dc2af1 (diff)
downloadrails-fb6743acc58495a63bca54221da9f38ce8227d3a.tar.gz
rails-fb6743acc58495a63bca54221da9f38ce8227d3a.tar.bz2
rails-fb6743acc58495a63bca54221da9f38ce8227d3a.zip
MariaDB: Remove version checking lower the 5.5.8
Since we already bumped the minimum version of MySQL to 5.5.8 at #33853.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb12
1 files changed, 2 insertions, 10 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
index dbc6614b93..10961ed9c8 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb
@@ -97,19 +97,11 @@ module ActiveRecord
end
def supports_datetime_with_precision?
- if mariadb?
- version >= "5.3.0"
- else
- version >= "5.6.4"
- end
+ mariadb? || version >= "5.6.4"
end
def supports_virtual_columns?
- if mariadb?
- version >= "5.2.0"
- else
- version >= "5.7.5"
- end
+ mariadb? || version >= "5.7.5"
end
def supports_advisory_locks?