From 36dccbdd410bd40ef9f387b11f597eb2bd15d1d8 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Sat, 12 Oct 2019 10:04:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E8=88=AA=E6=95=B0=E6=8D=AE=E5=AF=BC?= =?UTF-8?q?=E5=85=A5?= 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, 9 insertions(+), 9 deletions(-) diff --git a/app/controllers/initialization_data_controller.rb b/app/controllers/initialization_data_controller.rb index dae88e904..4a5c1367c 100644 --- a/app/controllers/initialization_data_controller.rb +++ b/app/controllers/initialization_data_controller.rb @@ -110,7 +110,7 @@ class InitializationDataController < ApplicationController ActiveRecord::Base.establish_connection( adapter: "mysql2", host: "rm-bp13v5020p7828r5r.mysql.rds.aliyuncs.com", - username: "testeducoder", + username: "preeducoderweb", password: "TEST@123", database: "#{database}", encoding: "utf8" diff --git a/db/seeds.rb b/db/seeds.rb index b7e1dca47..20be31770 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -38,11 +38,11 @@ user_extension_params = [ id: 1, user_id: 1, gender: 0, - location: "湖南", - occupation: "中国移动通信集团", + location: "山东", + occupation: "海军航空大学", technical_title: "副教授", identity: 0, - location_city: "长沙", + location_city: "烟台", school_id: 1, department_id: 1 }, @@ -55,18 +55,18 @@ user_extension_params = [ ] school_params = { id: 1, - name: "中国移动通信集团", - province: "湖南", + 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 }