Pirun Seng said almost 7 years ago on Two Factor Authentication :
Instead of setting enum _prefix to be working in my Rails 4 app, I've just done this in my User model instead: `enum otp_module: { otp_module_disabled: 0, otp_module_enabled: 1 }` Anyway, I think @Kobaltz's suggestion might be better.