Skip to content

Commit

Permalink
migration fix (#2208)
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren authored Feb 2, 2018
1 parent 31b2a6d commit b73d598
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ class SyncUserStatusWithDrupalUserStatus < ActiveRecord::Migration
def up
DrupalUser.all.each do |du|
user = du.user
user.status = du.status
user.save({})
if user
user.status = du.status
user.save({})
end
end
end

Expand Down

0 comments on commit b73d598

Please sign in to comment.