gitlab-org--gitlab-foss/lib/gitlab/database
Stan Hu 718ecd4eb5 Fix Error 500s when attempting to destroy a protected tag
Due to a missing `on_delete: :cascade`, users would hit the error that
looked like:

```
PG::ForeignKeyViolation: ERROR: update or delete on table "protected_tags"
violates foreign key constraint "fk_rails_f7dfda8c51" on table
"protected_tag_create_access_levels" DETAIL: Key (id)=(1385) is still
referenced from table "protected_tag_create_access_levels". : DELETE FROM
"protected_tags" WHERE "protected_tags"."id" = 1385
```

Closes #36013
2017-08-20 03:32:31 -07:00
..
rename_reserved_paths_migration Support multiple Redis instances based on queue type 2017-07-11 03:35:47 +00:00
date_time.rb fixing spec failures 2016-11-17 08:22:55 +01:00
median.rb Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
migration_helpers.rb Fix Error 500s when attempting to destroy a protected tag 2017-08-20 03:32:31 -07:00
multi_threaded_migration.rb Prepare for zero downtime migrations 2017-04-12 18:15:19 +02:00
sha_attribute.rb Added code for defining SHA attributes 2017-06-29 15:37:37 +02:00