海航数据导入

dev_local_2
daiao 6 years ago
parent 38ca342e4d
commit 36dccbdd41

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

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

Loading…
Cancel
Save