Empty string is converted to nil automatically
ldlgds2 opened this issue · comments
Laurent de la Garde de Saignes commented
When extracting data from JSONb where the values are the empty string, e.g. "", the gem will return them as nil into Rails.
Ramon Tayag commented
@ldlgds2, ok it should return them as blank strings too, I agree.
Ramon Tayag commented
I couldn't replicate the issue in a spec. Please see jsonb-blank-string-49
branch
Laurent de la Garde de Saignes commented
@ramontayag : Maraming salamat po :)
I will check with my former team another time and get back to you ASAP about this issue. Maybe there also was a DB or gem conflict issue.