ruby - Rails with angular - null value change to 0 -


when update field null value, 0 appear. db: postgres

angular put request

------webkitformboundarygqglt12slbc759gb content-disposition: form-data; name="product[gender]" null 

the field:

:gender, 'integer using cast(gender integer)', {default: nil, null: true} 

result: db postgres field


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -