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.
educoder/db/migrate/20190410081736_migrate_home...

6 lines
173 B

6 years ago
class MigrateHomeworkAttachments < ActiveRecord::Migration[5.2]
def change
Attachment.where(container_type: "HomeworkCommon").update_all(attachtype: 1)
end
end