diff options
Diffstat (limited to 'db/post_migrate/20211130201101_track_deletions_in_projects.rb')
-rw-r--r-- | db/post_migrate/20211130201101_track_deletions_in_projects.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/post_migrate/20211130201101_track_deletions_in_projects.rb b/db/post_migrate/20211130201101_track_deletions_in_projects.rb new file mode 100644 index 00000000000..dfe7ab4c037 --- /dev/null +++ b/db/post_migrate/20211130201101_track_deletions_in_projects.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +class TrackDeletionsInProjects < Gitlab::Database::Migration[1.0] + include Gitlab::Database::MigrationHelpers::LooseForeignKeyHelpers + + enable_lock_retries! + + def up + track_record_deletions(:projects) + end + + def down + untrack_record_deletions(:projects) + end +end |