From aafee233fb3b4211ee0bfb1fca776c159bd1067e Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Tue, 10 Feb 2015 15:58:39 -0700 Subject: Remove most PG specific type subclasses The latest version of the PG gem can actually convert the primitives for us in C code, which gives a pretty substantial speed up. A few cases were only there to add the `infinity` method, which I just put on the range type (which is the only place it was used). Floats also needed to parse `Infinity` and `NaN`, but it felt reasonable enough to put that on the generic form. --- .../connection_adapters/postgresql/oid/integer.rb | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 activerecord/lib/active_record/connection_adapters/postgresql/oid/integer.rb (limited to 'activerecord/lib/active_record/connection_adapters/postgresql/oid/integer.rb') diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/oid/integer.rb b/activerecord/lib/active_record/connection_adapters/postgresql/oid/integer.rb deleted file mode 100644 index 59abdc0009..0000000000 --- a/activerecord/lib/active_record/connection_adapters/postgresql/oid/integer.rb +++ /dev/null @@ -1,11 +0,0 @@ -module ActiveRecord - module ConnectionAdapters - module PostgreSQL - module OID # :nodoc: - class Integer < Type::Integer # :nodoc: - include Infinity - end - end - end - end -end -- cgit v1.2.3