summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
authorJarka Kadlecova <jarka@gitlab.com>2017-03-15 14:19:45 +0100
committerJarka Kadlecova <jarka@gitlab.com>2017-03-28 15:16:41 +0200
commitc729d9dae7ad8c32cbe93b590baa24c8133364e5 (patch)
tree45bccc7eca5c789821a2435e7a0f3f1c75fc9e0e /app/models/note.rb
parent1c3c7fb25d972fc19d5b4bb371cb21094d81e478 (diff)
downloadgitlab-ce-c729d9dae7ad8c32cbe93b590baa24c8133364e5.tar.gz
Create metadata when creating system notes
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index ba5a552f469..16d66cb1427 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -37,7 +37,7 @@ class Note < ActiveRecord::Base
has_many :todos, dependent: :destroy
has_many :events, as: :target, dependent: :destroy
- has_one :system_note_metadata, dependent: :destroy
+ has_one :system_note_metadata
delegate :gfm_reference, :local_reference, to: :noteable
delegate :name, to: :project, prefix: true