fixes postgres "unknown OID" warnings

rails ActiveModel fix: https://github.com/rails/rails/pull/10498