aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/oid/integer.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-02-10 15:58:39 -0700
committerSean Griffin <sean@thoughtbot.com>2015-02-11 08:49:31 -0700
commitaafee233fb3b4211ee0bfb1fca776c159bd1067e (patch)
treee56375fa85fcec65d68e9192c8d6f713f9d5a7c4 /activerecord/lib/active_record/connection_adapters/postgresql/oid/integer.rb
parent9a656a7776b2be0a13f8f20eedbca7fb5d184b34 (diff)
downloadrails-aafee233fb3b4211ee0bfb1fca776c159bd1067e.tar.gz
rails-aafee233fb3b4211ee0bfb1fca776c159bd1067e.tar.bz2
rails-aafee233fb3b4211ee0bfb1fca776c159bd1067e.zip
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.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql/oid/integer.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/oid/integer.rb11
1 files changed, 0 insertions, 11 deletions
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