Rails5: Enable verbose query logs

This commit is contained in:
Jasper Maes 2018-08-16 08:18:13 +02:00
parent 79fdfec51f
commit 7f462b630a
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
title: 'Rails5: Enable verbose query logs'
merge_request: 21231
author: Jasper Maes
type: fixed

View file

@ -47,7 +47,9 @@ module ActiveRecord
end
end
unless Gitlab.rails5?
if Rails.version.start_with?("5.2")
raise "Remove this monkey patch: #{__FILE__}"
else
prepend(VerboseQueryLogs) unless Rails.env.production?
end
end