aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2016-08-31 10:06:43 -0400
committerGitHub <noreply@github.com>2016-08-31 10:06:43 -0400
commitc14c0e3cf0f4fd828411b42602a6e7a71e0d59c7 (patch)
tree1038264f2d2f490460f59df0843d13bf02319786 /activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
parentcaa178c178468f7adcc5f4c597280e6362d9e175 (diff)
parent402852fc6d3222a283b65d407ffec3161946db71 (diff)
downloadrails-c14c0e3cf0f4fd828411b42602a6e7a71e0d59c7.tar.gz
rails-c14c0e3cf0f4fd828411b42602a6e7a71e0d59c7.tar.bz2
rails-c14c0e3cf0f4fd828411b42602a6e7a71e0d59c7.zip
Merge pull request #26282 from kamipo/add_type_default_value
Add `Type.default_value` and use it everywhere for internal
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
index bd53123511..2013f24d74 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -437,7 +437,7 @@ module ActiveRecord
type_map.fetch(oid, fmod, sql_type) {
warn "unknown OID #{oid}: failed to recognize type of '#{column_name}'. It will be treated as String."
- Type::Value.new.tap do |cast_type|
+ Type.default_value.tap do |cast_type|
type_map.register_type(oid, cast_type)
end
}