summaryrefslogtreecommitdiff
path: root/db/migrate/20220125084127_add_cleanup_attempts_to_loose_foreign_keys_deleted_records.rb
blob: e0c80ad79e5890bad7b46fa400d023d365040443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class AddCleanupAttemptsToLooseForeignKeysDeletedRecords < Gitlab::Database::Migration[1.0]
  enable_lock_retries!

  def up
    add_column :loose_foreign_keys_deleted_records, :cleanup_attempts, :smallint, default: 0
  end

  def down
    remove_column :loose_foreign_keys_deleted_records, :cleanup_attempts
  end
end