Merge branch 'develop' into szzh

chenlw_dev
cxt 10 years ago
commit cf61fd6b85

@ -1,9 +1,9 @@
class ChangeAttachmentHistory < ActiveRecord::Migration
def up
attachments = Attachment.where("container_type =?", "Version")
attachments.each do |am|
am.update_attribute(:container_type, "Project") unless am.nil?
end
# attachments = Attachment.where("container_type =?", "Version")
# attachments.each do |am|
# am.update_attribute(:container_type, "Project") unless am.nil?
# end
end
def down

Loading…
Cancel
Save