parent
fb096b0c86
commit
d7c6609779
@ -0,0 +1,11 @@ |
||||
class ResetContentTypes < ActiveRecord::Migration |
||||
def up |
||||
Attachment.all.each do |attachment| |
||||
attachment.update_column(:content_type, Attachment.content_type_for(attachment.diskfile)) |
||||
end |
||||
end |
||||
|
||||
def down |
||||
# noop |
||||
end |
||||
end |
Loading…
Reference in new issue