parent
e56382a899
commit
fd2197a73d
@ -0,0 +1,11 @@
|
|||||||
|
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
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in new issue