Skip to content

Commit

Permalink
Pass password_digest to v3 in user migration (#5556)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad authored Nov 21, 2023
1 parent 101aa0b commit 30882ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tasks/migrations/migrations.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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,
Expand Down

0 comments on commit 30882ef

Please sign in to comment.