Commit c39d5bd1 authored by Andreas Brandl's avatar Andreas Brandl

Use migration-level lock-retries

parent b7a6b876
# frozen_string_literal: true # frozen_string_literal: true
class AddLatestColumnIntoTheSecurityScansTable < Gitlab::Database::Migration[1.0] class AddLatestColumnIntoTheSecurityScansTable < Gitlab::Database::Migration[1.0]
enable_lock_retries!
def up def up
with_lock_retries do add_column :security_scans, :latest, :boolean, default: true, null: false
add_column :security_scans, :latest, :boolean, default: true, null: false
end
end end
def down def down
with_lock_retries do remove_column :security_scans, :latest
remove_column :security_scans, :latest
end
end end
end 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