devise, User and Result models, magic_encoding