diff --git a/lib/gitlab/upgrader.rb b/lib/gitlab/upgrader.rb
index 23a5a868d791280f21f9db098e76351750ff73df..7fd4935191cadb41b8aebcf77d417d03c3cb88a0 100644
--- a/lib/gitlab/upgrader.rb
+++ b/lib/gitlab/upgrader.rb
@@ -60,8 +60,8 @@ module Gitlab
         "Get latest code" => %W(#{Gitlab.config.git.bin_path} fetch),
         "Switch to new version" => %W(#{Gitlab.config.git.bin_path} checkout v#{latest_version}),
         "Install gems" => %W(bundle),
-        "Migrate DB" => %W(bundle exec rake db:migrate),
         "Install node modules" => %W(npm install --production),
+        "Migrate DB" => %W(bundle exec rake db:migrate),
         "Recompile assets" => %W(bundle exec rake gitlab:assets:clean gitlab:assets:compile),
         "Clear cache" => %W(bundle exec rake cache:clear)
       }