gitlab-org--gitlab-foss/db
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
..
fixtures Skip creating the merge request if repo is empty 2017-08-11 23:27:42 +08:00
migrate Fix Error 500s when attempting to destroy a protected tag 2017-08-20 03:32:31 -07:00
post_migrate Merge branch 'rs-trailingwhitespace-cop' into 'master' 2017-08-16 10:27:46 +00:00
schema.rb Fix Error 500s when attempting to destroy a protected tag 2017-08-20 03:32:31 -07:00
seeds.rb