diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-05-17 10:28:41 +0200 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-05-21 17:56:57 +0200 |
commit | a0c79f9d7025872fc2aa91805058739b26093989 (patch) | |
tree | e8354b8ade6d2b5a18482ff5951709ec4c3d2120 /app/models/user.rb | |
parent | 7e78eacd2a302ac36d09f5170fb9e12ff61c56b4 (diff) | |
download | gitlab-ce-a0c79f9d7025872fc2aa91805058739b26093989.tar.gz |
Add NOT NULL constraints to project_authorizations.
Closes #32258.
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 8ef3c3ceff0..5a4c373705b 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -109,7 +109,7 @@ class User < ActiveRecord::Base has_many :created_projects, foreign_key: :creator_id, class_name: 'Project' has_many :users_star_projects, dependent: :destroy # rubocop:disable Cop/ActiveRecordDependent has_many :starred_projects, through: :users_star_projects, source: :project - has_many :project_authorizations + has_many :project_authorizations, dependent: :delete_all # rubocop:disable Cop/ActiveRecordDependent has_many :authorized_projects, through: :project_authorizations, source: :project has_many :user_interacted_projects |