fixes postgres "unknown OID" warnings

rails ActiveModel fix: https://github.com/rails/rails/pull/10498
fixes typo
Merge pull request #628 from jzelenkov/fix-postresql-oid

fixes postgres "unknown OID" warnings