aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
diff options
context:
space:
mode:
authorlsylvester <lachlan.sylvester@hypothetical.com.au>2014-03-11 08:10:25 +1100
committerlsylvester <lachlan.sylvester@hypothetical.com.au>2014-03-11 08:14:03 +1100
commitb3e0da3062f809599fb4da9f9a29ed45aebd1ff6 (patch)
tree6bdc95ed7456bf88d9c90b6f10980ef71be15e12 /activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
parentd41154094a332a3dd797c4148894fbcd1e5ad5ff (diff)
downloadrails-b3e0da3062f809599fb4da9f9a29ed45aebd1ff6.tar.gz
rails-b3e0da3062f809599fb4da9f9a29ed45aebd1ff6.tar.bz2
rails-b3e0da3062f809599fb4da9f9a29ed45aebd1ff6.zip
register OID for PostgreSQL citex datatype [Troy Kruthoff & Lachlan Sylvester]
citext makes it possible to use AR Hash finders for case-insensitive matching as sql UPPER/LOWER functions are not needed.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql/oid.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/oid.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb b/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
index 697915f3e9..5d32aaed50 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
@@ -375,6 +375,7 @@ This is not reliable and will be removed in the future.
register_type 'circle', OID::Text.new
register_type 'hstore', OID::Hstore.new
register_type 'json', OID::Json.new
+ register_type 'citext', OID::Text.new
register_type 'ltree', OID::Text.new
register_type 'cidr', OID::Cidr.new