Further patching for rails 4 uuid postgres compatibility.