Guest User

Untitled

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