aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/models/attached/many_test.rb
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-07-19 20:43:33 -0400
committerGeorge Claghorn <george@basecamp.com>2018-07-19 20:43:33 -0400
commit2ae3a29508e2a5daab6dd3eea3e10e40df6fd945 (patch)
treefc08f206365a802df29e7d4f8115d84766ce96c1 /activestorage/test/models/attached/many_test.rb
parent3f53296f1823417d9793c4616e9134414b7be0e8 (diff)
downloadrails-2ae3a29508e2a5daab6dd3eea3e10e40df6fd945.tar.gz
rails-2ae3a29508e2a5daab6dd3eea3e10e40df6fd945.tar.bz2
rails-2ae3a29508e2a5daab6dd3eea3e10e40df6fd945.zip
Add a foreign-key constraint to the attachments table for blobs
Diffstat (limited to 'activestorage/test/models/attached/many_test.rb')
-rw-r--r--activestorage/test/models/attached/many_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/test/models/attached/many_test.rb b/activestorage/test/models/attached/many_test.rb
index 82be88af08..334254d099 100644
--- a/activestorage/test/models/attached/many_test.rb
+++ b/activestorage/test/models/attached/many_test.rb
@@ -10,7 +10,7 @@ class ActiveStorage::ManyAttachedTest < ActiveSupport::TestCase
@user = User.create!(name: "Josh")
end
- teardown { ActiveStorage::Blob.all.each(&:purge) }
+ teardown { ActiveStorage::Blob.all.each(&:delete) }
test "attaching existing blobs to an existing record" do
@user.highlights.attach create_blob(filename: "funky.jpg"), create_blob(filename: "town.jpg")