summaryrefslogtreecommitdiff
path: root/spec/models/user_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/user_spec.rb
parent2fe09e6a12e4f533d77517ddd7fe40fc53522f92 (diff)
downloadgitlab-ce-d07addbf6e3841ae31a7e62ecbb29523f4d8c859.tar.gz
Add foreign keys to todos table.
Fixes #32282.
Diffstat (limited to 'spec/models/user_spec.rb')
-rw-r--r--spec/models/user_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index 18c91d4cffd..af79ea4c283 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -33,7 +33,7 @@ describe User do
it { is_expected.to have_many(:merge_requests).dependent(:destroy) }
it { is_expected.to have_many(:identities).dependent(:destroy) }
it { is_expected.to have_many(:spam_logs).dependent(:destroy) }
- it { is_expected.to have_many(:todos).dependent(:destroy) }
+ it { is_expected.to have_many(:todos) }
it { is_expected.to have_many(:award_emoji).dependent(:destroy) }
it { is_expected.to have_many(:triggers).dependent(:destroy) }
it { is_expected.to have_many(:builds).dependent(:nullify) }