2022-01-26 12:08:38 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-06-20 00:43:36 +05:30
|
|
|
class TrackPushRulesDeletions < Gitlab::Database::Migration[2.1]
|
2022-01-26 12:08:38 +05:30
|
|
|
include Gitlab::Database::MigrationHelpers::LooseForeignKeyHelpers
|
|
|
|
|
|
|
|
enable_lock_retries!
|
|
|
|
|
|
|
|
def up
|
2023-06-20 00:43:36 +05:30
|
|
|
track_record_deletions(:push_rules)
|
2022-01-26 12:08:38 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2023-06-20 00:43:36 +05:30
|
|
|
untrack_record_deletions(:push_rules)
|
2022-01-26 12:08:38 +05:30
|
|
|
end
|
|
|
|
end
|