Skip to content

WIP: Adds deleted-in-version to designs

Alex Kalderimis requested to merge add-deleted-in-version into master

What does this MR do?

This adds a column, deleted_in_version_id to the DesignManagement::Design model, marking them as deleted.

This is in support of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14656

Database checklist

When adding migrations:

  • Updated db/schema.rb
  • Added a down method so the migration can be reverted
  • Added the output of the migration(s) to the MR body
$ rails db:migrate
== 20190711111748 AddDeletedInVersionToDesignManagementVersion: migrating =====
-- change_table(:design_management_designs)
   -> 0.0270s
== 20190711111748 AddDeletedInVersionToDesignManagementVersion: migrated (0.0271s)
  • Added tests for the migration in spec/migrations if necessary (e.g. when migrating data)

General checklist

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading