diff options
Diffstat (limited to 'lib/tasks/dev.rake')
-rw-r--r-- | lib/tasks/dev.rake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/tasks/dev.rake b/lib/tasks/dev.rake index cb01f229cd3..99ffeb4ec0b 100644 --- a/lib/tasks/dev.rake +++ b/lib/tasks/dev.rake @@ -8,8 +8,10 @@ namespace :dev do ENV['force'] = 'yes' Rake::Task["gitlab:setup"].invoke - # Make sure DB statistics are up to date. - ActiveRecord::Base.connection.execute('ANALYZE') + Gitlab::Database::EachDatabase.each_database_connection do |connection| + # Make sure DB statistics are up to date. + connection.execute('ANALYZE') + end Rake::Task["gitlab:shell:setup"].invoke end |