`rails g devise:install`, plus following the instructions.