From 711af752342cdd558f5f82d407d0d56a115bb8bc Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Mon, 12 May 2014 16:39:24 +0200 Subject: pg, map `char` and `name` types as string. [dark-panda & Yves Senn] Closes #10802. --- activerecord/lib/active_record/connection_adapters/postgresql/oid.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb b/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb index 14beb7bd25..b173163e41 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/oid.rb @@ -409,6 +409,7 @@ This is not reliable and will be removed in the future. register_type 'text', OID::Text.new register_type 'varchar', OID::String.new alias_type 'char', 'varchar' + alias_type 'name', 'varchar' alias_type 'bpchar', 'varchar' register_type 'bool', OID::Boolean.new register_type 'bit', OID::Bit.new -- cgit v1.2.3