use protected type_map from super class to support Rails 5.2 update by ggmichaelgo · Pull Request #1 · cookpad/armg
rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb in version 5.2 has encapsulated the type_map variable. rails/rails@2ec2075