From 10146bee4fa8f7a922a0c2d79cca890f4ff854d6 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Thu, 26 Sep 2019 17:08:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E6=95=B0=E6=8D=AE=E5=8F=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../initialization_data_controller.rb | 2 ++ db/seeds.rb | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/controllers/initialization_data_controller.rb b/app/controllers/initialization_data_controller.rb index df9f12192..a3e3fe6b0 100644 --- a/app/controllers/initialization_data_controller.rb +++ b/app/controllers/initialization_data_controller.rb @@ -49,6 +49,7 @@ class InitializationDataController < ApplicationController get_test_sets_data(@challenges) get_challenge_chooses_data(@challenges) get_challenge_questions_data(@challenge_chooses) + get_attachment_data end def create_init_data database @@ -98,6 +99,7 @@ class InitializationDataController < ApplicationController copy_challenge_questions_data copy_shixun_members_data copy_subject_members_data + copy_attachment_data end end diff --git a/db/seeds.rb b/db/seeds.rb index a14b02efc..332fa4fa4 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -19,7 +19,7 @@ user_params = [ type: 'User', language: 'zh', nickname: 'Educoder', - show_realname: '社区导师', + show_realname: '指导老师', professional_certification: 1, certification: 1, salt: '3dce3e3983227c40c48a25419d41de7e', @@ -39,7 +39,7 @@ user_extension_params = [ user_id: 1, gender: 0, location: "湖南", - occupation: "国防科技大学", + occupation: "中国移动通信集团", technical_title: "副教授", identity: 0, location_city: "长沙", @@ -55,18 +55,18 @@ user_extension_params = [ ] school_params = { id: 1, - name: "国防科技大学", - province: "安徽", - pinyin: 'guofangkexuejishudaxue', + name: "中国移动通信集团", + province: "湖南", + pinyin: 'zhongguoyidongtongxinjiduan', school_type: 0, - city: "合肥", - address: "安徽省合肥市", + city: "长沙", + address: "湖南省长沙市", auto_users_trial: 1, identifier: 'nudt' } department_params = { id: 1, - name: '电子对抗学院', + name: '湖南有限公司', school_id: 1, is_auth: 1 }