diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-02-05 12:26:33 +0100 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-02-05 16:16:57 +0100 |
commit | d07addbf6e3841ae31a7e62ecbb29523f4d8c859 (patch) | |
tree | 53ab33b6fb26f99a17870e82c79f05248fbf6503 /app/models/note.rb | |
parent | 2fe09e6a12e4f533d77517ddd7fe40fc53522f92 (diff) | |
download | gitlab-ce-d07addbf6e3841ae31a7e62ecbb29523f4d8c859.tar.gz |
Add foreign keys to todos table.
Fixes #32282.
Diffstat (limited to 'app/models/note.rb')
-rw-r--r-- | app/models/note.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index 01a778a7424..cac60845a49 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -60,7 +60,7 @@ class Note < ActiveRecord::Base belongs_to :updated_by, class_name: "User" belongs_to :last_edited_by, class_name: 'User' - has_many :todos, dependent: :destroy # rubocop:disable Cop/ActiveRecordDependent + has_many :todos has_many :events, as: :target, dependent: :destroy # rubocop:disable Cop/ActiveRecordDependent has_one :system_note_metadata |