Add migration for unencrypted ln login field
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Râu Cao
2023-01-11 19:50:01 +08:00
parent 68e0d00f6e
commit 51952ecdc2
4 changed files with 32 additions and 2 deletions

View File

@@ -7,7 +7,8 @@ class CreateLndhubAccountJob < ApplicationJob
lndhub = LndhubV2.new
credentials = lndhub.create_account
user.update! ln_login: credentials["login"],
user.update! ln_account: credentials["login"],
ln_login: credentials["login"], # TODO remove when production is migrated
ln_password: credentials["password"]
end
end