How to insert a string content into varbinary column in rails

There is a varbinary column in database table,in sql statement,we can
use ’ convert(varbinary(10),‘hello’) ’ to convert string to
varbinary ,but in rails,how can I do that or there is a another way to
insert a string content into varbinary column.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs