Fix connection instance method call deprecation warning introduced in ActiveRecord 4.0