File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -185,10 +185,11 @@ class User < ActiveRecord::Base
185
185
has_many :endorsements , foreign_key : 'endorsed_user_id'
186
186
has_many :endorsings , foreign_key : 'endorsing_user_id' , class_name : 'Endorsement'
187
187
has_many :protips , dependent : :destroy
188
- has_many :likes
188
+ has_many :likes , dependent : :destroy
189
189
has_many :comments , dependent : :destroy
190
+ has_many :sent_mails , dependent : :destroy
190
191
191
- has_one :github_profile , class_name : 'Users::Github::Profile' , dependent : :destroy
192
+ has_one :github_profile , class_name : 'Users::Github::Profile' , dependent : :destroy
192
193
has_many :github_repositories , through : :github_profile , source : :repositories
193
194
194
195
belongs_to :team , class_name : 'Team'
You can’t perform that action at this time.
0 commit comments