gitlab-org--gitlab-foss/db/post_migrate/20211209094222_track_merge_requests_deletes.rb

16 lines
319 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class TrackMergeRequestsDeletes < Gitlab::Database::Migration[1.0]
include Gitlab::Database::MigrationHelpers::LooseForeignKeyHelpers
enable_lock_retries!
def up
track_record_deletions(:merge_requests)
end
def down
untrack_record_deletions(:merge_requests)
end
end