chabgood said over 6 years ago on attr_encrypted :
I have a rails 5 app that is an API, I am getting this error: It was working fine before I added the gem. ActiveRecord::StatementInvalid (Mysql2::Error: Unknown column 'disclosure_forms.name' in 'where clause': SELECT `disclosure_forms`.* FROM `disclosure_forms` WHERE `disclosure_forms`.`name` = 'Chris Habgood' LIMIT 1):