我有Paperclip附件管理器与MySQL数据库。如何安全地删除回形针attachmetns上的链接?
class Photo < ActiveRecord::Base
has_attached_file :file, :styles => {:large => "800x600>"}, :default_url => "/images/:style/missing.png"
end
存储在Amazon S3中的图像。我需要从数据库中删除此图像上的链接,但图像必须保留在S3上。我如何做到这一点?
1)Photo.delete_all?
2)从ActiveAdmin中删除?
3)从mysql控制台中删除?
4)另一种方法......?