When you set database column type VARCHAR(255) and saves there serialized json which longer then 255 chars. "Hey man, I stored your json, everything OK!" - the lie of RubyOnRails and MySQL. God bless PostrgeSQL! Ave!