Revert: An attempt to upgrade Rails/Devise to somewhat newer versions broke both our secret key creation and database adapter detection