I'm adding encryption using the attr_encrypted
gem. Essentially all I have to do is add the gem, and rename my columns to have a prefix of encrypted_column
before adding the line:
attr_encrypted :reply, key: ENV["ANSWER_CRYPT_KEY"]
to my model. Now this works all and well, however I'm getting ready to push this to production, and will have some issues, because the values there are not encrypted - is there a command I can run in my rails c to loop over them and encrypt them?