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:
Comments
Post a Comment