I use serializein one model ActiveRecordto serialize Arraysimple hashes in a text database field. I even use the second parameter to force deserialization in Arrays.
class Shop < ActiveRecord::Base
serialize : recipients, Array
end
Everything seems to be fine, but after a few requests, the content recipientsturns into hashes HashOfIndifferentAccessinstead of arrays. This happens only after several reboots of the models, and I could not reproduce them in tests or console, only in the working environment.
source
share