debian-mirror-gitlab/db/migrate/20230323153042_track_push_rules_deletions.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
309 B
Ruby
Raw Normal View History

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