Rubocop autocorrections
This commit is contained in:
parent
299738f58d
commit
43bef689fc
85 changed files with 622 additions and 578 deletions
|
|
@ -13,6 +13,7 @@ class MigrateDataPersonToUser < ActiveRecord::Migration
|
|||
TempPerson.all.each do |p|
|
||||
user = TempUser.find_by(id: p.user_id)
|
||||
next unless user
|
||||
|
||||
if p.public_name.empty?
|
||||
user.name = p.email
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue