notes should depends on user when destroy
This commit is contained in:
parent
eb96336de1
commit
9a5f328313
2 changed files with 19 additions and 0 deletions
|
@ -16,6 +16,10 @@ class User < ActiveRecord::Base
|
|||
:foreign_key => :author_id,
|
||||
:dependent => :destroy
|
||||
|
||||
has_many :notes,
|
||||
:foreign_key => :author_id,
|
||||
:dependent => :destroy
|
||||
|
||||
has_many :assigned_issues,
|
||||
:class_name => "Issue",
|
||||
:foreign_key => :assignee_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue