diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-06 15:08:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-06 15:08:07 +0300 |
commit | b161512b300e70c1e786dd299867dad284e11019 (patch) | |
tree | d0537a6f97b8a117a1a7763c50dca18735b64aca /lib/gitlab/database | |
parent | eb4b72630a9f479f33858fc9011e18666da3bbba (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/database')
-rw-r--r-- | lib/gitlab/database/postgres_foreign_key.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/database/postgres_foreign_key.rb b/lib/gitlab/database/postgres_foreign_key.rb index 28044b42f44..bb3e1d45f15 100644 --- a/lib/gitlab/database/postgres_foreign_key.rb +++ b/lib/gitlab/database/postgres_foreign_key.rb @@ -5,6 +5,8 @@ module Gitlab class PostgresForeignKey < SharedModel self.primary_key = :oid + has_many :child_foreign_keys, class_name: 'Gitlab::Database::PostgresForeignKey', foreign_key: 'parent_oid' + # These values come from the possible confdeltype / confupdtype values in pg_constraint ACTION_TYPES = { restrict: 'r', |