如何删除创建的列? rails destroy paperclip portfolio href似乎不起作用!
class RemoveAttachmentHrefToPortfolios < ActiveRecord::Migration def self.up remove_attachment :portfolios,:href end def self.down remove_attachment :portfolios,:href end end
问题是这不是优雅和正确的方法.我希望有人能改进这个答案..