9 lines
295 B
Ruby
9 lines
295 B
Ruby
class UnscribdTextHtmlAttachments < ActiveRecord::Migration
|
|
def self.up
|
|
Attachment.scoped(:conditions => ["content_type IN ('text/html', 'application/xhtml+xml', 'application/xml', 'text/xml')"]).update_all(:scribd_mime_type_id => nil, :scribd_doc => nil)
|
|
end
|
|
|
|
def self.down
|
|
end
|
|
end
|