清理数据

dev_local_2
daiao 5 years ago
parent e70d60cade
commit e282987b92

@ -22,6 +22,8 @@ class InitializationDataController < ApplicationController
User.where("id > 2").destroy_all
Myshixun.where(user: 1).destroy_all
Course.where(tea_id: 1).destroy_all
# 清理垃圾高校
School.where("id > 1").destroy_all
normal_status("初始化数据成功!")
end
end

Loading…
Cancel
Save