Commit 91e3aeba authored by Yannis Roussos's avatar Yannis Roussos

Merge branch 'docs-aa-add-foreign-keys-to-existing-tables-with-orphaned-rows' into 'master'

Docs update for adding foreign keys to existing tables

See merge request gitlab-org/gitlab!64791
parents 02f3bb3f 8cf6e13e
......@@ -28,7 +28,8 @@ Guide](migration_style_guide.md) for more information.
Keep in mind that you can only safely add foreign keys to existing tables after
you have removed any orphaned rows. The method `add_concurrent_foreign_key`
does not take care of this so you'll need to do so manually.
does not take care of this so you'll need to do so manually. See
[adding foreign key constraint to an existing column](database/add_foreign_key_to_existing_column.md).
## Cascading Deletes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment