summaryrefslogtreecommitdiff
path: root/spec/models/note_spec.rb
diff options
context:
space:
mode:
authorAndreas Brandl <abrandl@gitlab.com>2018-02-05 12:26:33 +0100
committerAndreas Brandl <abrandl@gitlab.com>2018-02-05 16:16:57 +0100
commitd07addbf6e3841ae31a7e62ecbb29523f4d8c859 (patch)
tree53ab33b6fb26f99a17870e82c79f05248fbf6503 /spec/models/note_spec.rb
parent2fe09e6a12e4f533d77517ddd7fe40fc53522f92 (diff)
downloadgitlab-ce-d07addbf6e3841ae31a7e62ecbb29523f4d8c859.tar.gz
Add foreign keys to todos table.
Fixes #32282.
Diffstat (limited to 'spec/models/note_spec.rb')
-rw-r--r--spec/models/note_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/note_spec.rb b/spec/models/note_spec.rb
index 00dda7c9c60..c853f707e6d 100644
--- a/spec/models/note_spec.rb
+++ b/spec/models/note_spec.rb
@@ -8,7 +8,7 @@ describe Note do
it { is_expected.to belong_to(:noteable).touch(false) }
it { is_expected.to belong_to(:author).class_name('User') }
- it { is_expected.to have_many(:todos).dependent(:destroy) }
+ it { is_expected.to have_many(:todos) }
end
describe 'modules' do