sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production broken

Created by: ghost

I was trying to install gitlab and when I ran

sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production

I got back

rake aborted! uninitialized constant Rack::Attack /home/git/gitlab/config/application.rb:79:in <class:Application>' /home/git/gitlab/config/application.rb:9:inmodule:Gitlab' /home/git/gitlab/config/application.rb:8:in <top (required)>' /home/git/gitlab/Rakefile:5:inrequire' /home/git/gitlab/Rakefile:5:in `<top (required)>' (See full trace by running task with --trace)

How do I fix this?