Commit 04d2f674 authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Truncate `security_findings` table only for dev and Gitlab.com

parent e2dcf31b
......@@ -8,6 +8,8 @@ class TruncateSecurityFindingsTable < ActiveRecord::Migration[6.0]
disable_ddl_transaction!
def up
return unless Gitlab.dev_env_or_com?
with_lock_retries do
connection.execute('TRUNCATE security_findings RESTART IDENTITY')
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment