Adding Custom Fields to Devise
Before doing anything, please check the versions of the gem files:
gem 'rails', '~> 5.1.4' gem 'devise', '~> 4.4.0'
Disclaimer - This solution may not work with older versions of rails and devise. Versions listed above were the latest versions of gems which I was using at the time of creation and tests. (10 Jan 2018)