mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
6 lines
265 B
Ruby
6 lines
265 B
Ruby
class UpdateTidingsDeleteStatus < ActiveRecord::Migration[5.2]
|
|
def change
|
|
# Tiding.where.not(container_type: 'DeleteCourse').where(belong_container_type: "Course", belong_container_id: Course.where(is_delete: 1).pluck(:id)).update_all(is_delete: 1)
|
|
end
|
|
end
|