diff --git a/test/active_storage_test.rb b/test/active_storage_test.rb index 3eaed6fa..4629abce 100644 --- a/test/active_storage_test.rb +++ b/test/active_storage_test.rb @@ -4,7 +4,9 @@ class ActiveStorageTest < Minitest::Test def setup skip unless defined?(ActiveStorage) - ActiveStorage::VariantRecord.delete_all + if ActiveStorage::VERSION::STRING.to_f >= 6.1 + ActiveStorage::VariantRecord.delete_all + end ActiveStorage::Attachment.delete_all ActiveStorage::Blob.delete_all end