You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trustieforge/db/migrate/20160108021447_change_attac...

12 lines
274 B

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