diff --git a/lib/shoulda/matchers/active_record/have_attached_matcher.rb b/lib/shoulda/matchers/active_record/have_attached_matcher.rb index edfa48f51..32a74fa0b 100644 --- a/lib/shoulda/matchers/active_record/have_attached_matcher.rb +++ b/lib/shoulda/matchers/active_record/have_attached_matcher.rb @@ -87,8 +87,7 @@ def attachments_association_matcher ). conditions(name: name). class_name('ActiveStorage::Attachment'). - inverse_of(:record). - dependent(false) + inverse_of(:record) end def attachments_association_name