|
|
|
@ -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
|
|
|
|
|