修改迁移测试为前1000个用户
This commit is contained in:
parent
b9ee72b3b5
commit
d17410489e
|
@ -6,7 +6,7 @@
|
|||
class SyncUserForgeTask
|
||||
def call
|
||||
Rails.logger.info("##########_______sync_start________###########")
|
||||
all_users = User.where("login is not null")
|
||||
all_users = User.where("login is not null").first(1000)
|
||||
# 这里再把所有用户循环
|
||||
all_users.find_each do |u|
|
||||
user_params = u.as_json
|
||||
|
|
Loading…
Reference in New Issue