2016-01-08 11:01:29 +08:00
|
|
|
class ChangeAttachmentHistory < ActiveRecord::Migration
|
|
|
|
def up
|
2016-01-08 18:55:17 +08:00
|
|
|
# attachments = Attachment.where("container_type =?", "Version")
|
|
|
|
# attachments.each do |am|
|
|
|
|
# am.update_attribute(:container_type, "Project") unless am.nil?
|
|
|
|
# end
|
2016-01-08 11:01:29 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
end
|
|
|
|
end
|