Fix binary size handling migration to Active Record

review1017002
Add tests on fields.Binary

review1017002