diff --git a/lib/tasks/migrations/migrations.rake b/lib/tasks/migrations/migrations.rake index 8450e664f0..2f1ce6a565 100755 --- a/lib/tasks/migrations/migrations.rake +++ b/lib/tasks/migrations/migrations.rake @@ -69,7 +69,7 @@ namespace :migrations do user = User.unscoped user = user.where(provider: args[:provider]) if args[:provider].present? - user = user.select(:id, :uid, :name, :email, :social_uid, :language, :role_id, :created_at) + user = user.select(:id, :uid, :name, :email,:password_digest, :social_uid, :language, :role_id, :created_at) .includes(:role) .where.not(roles: { name: COMMON[:filtered_user_roles] }, deleted: true) @@ -79,6 +79,7 @@ namespace :migrations do { name: u.name, email: u.email, external_id: u.social_uid, + password_digest: u.password_digest, provider: u.provider, language: u.language, role: role_name,