迁移用户

dev_aliyun
jingquan huang 5 years ago
parent 7da945e398
commit 037d191cb7

@ -1,5 +0,0 @@
class AddExecTimeToEvaluateRecords < ActiveRecord::Migration
def change
add_column :evaluate_records, :exec_time, :integer
end
end

@ -86,10 +86,10 @@ task :add_test_users => :environment do
(1..1000).each do |i|
(1..2000).find_each do |i|
no = sprintf("%04d", i)
phone = "5160731#{no}"
phone = "6160731#{no}"
us = UsersService.new
user = us.register phone: phone, password: 'edu12345678'
@ -100,7 +100,7 @@ task :add_test_users => :environment do
,,,,,,,,,,,,,,,,,,绿,,,
,,,,,,,,,,访,,绿,,,,,,,,,
,,绿,,,,,,,,,,,,,,,,,,,
,绿,,,,,,,,,绿,,,,,,,,,,
,绿,,,,,,,,,,绿,,,,,,,,,,
,,,,,,,,,,,,,,,,,".split(",")
lastname = l[rand(l.length)] + f[rand(f.length)]
@ -109,7 +109,7 @@ task :add_test_users => :environment do
lastname: lastname,
nickname: '',
sex: 0,
mail: "00educoder#{no}@qq.com",
mail: "stueducoder#{no}@qq.com",
identity: 1,
te_technical_title: 0,
pro_technical_title: 0,

Loading…
Cancel
Save