Skip to content

Commit

Permalink
Add dependent destroy to user
Browse files Browse the repository at this point in the history
  • Loading branch information
ericjbowman committed Jun 21, 2019
1 parent a723cf2 commit d6afdbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
class User < ApplicationRecord
include Authentication
has_many :examples
has_many :tunes
has_many :tunes, dependent: :destroy
end

0 comments on commit d6afdbe

Please sign in to comment.