We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e33f24 commit 5211df0Copy full SHA for 5211df0
app/models/user.rb
@@ -185,10 +185,11 @@ class User < ActiveRecord::Base
185
has_many :endorsements, foreign_key: 'endorsed_user_id'
186
has_many :endorsings, foreign_key: 'endorsing_user_id', class_name: 'Endorsement'
187
has_many :protips, dependent: :destroy
188
- has_many :likes
+ has_many :likes, dependent: :destroy
189
has_many :comments, dependent: :destroy
190
+ has_many :sent_mails, dependent: :destroy
191
- has_one :github_profile , class_name: 'Users::Github::Profile', dependent: :destroy
192
+ has_one :github_profile, class_name: 'Users::Github::Profile', dependent: :destroy
193
has_many :github_repositories, through: :github_profile , source: :repositories
194
195
belongs_to :team, class_name: 'Team'
0 commit comments