Guest User

Untitled

a guest
May 27th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1.  
  2. Suppose Foo.create(:binary_blob => x) for x:
  3.  
  4.  
  5. x = 1.chr # 0x01 on db, works
  6. x = 2.chr # 0x02 works...
  7.  
  8. x = 0.chr # "" on db , it should be 0x00
Add Comment
Please, Sign In to add comment