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

@@ -0,0 +1,9 @@
class AddLnAccountToUsers < ActiveRecord::Migration[7.0]
def change
add_column :users, :ln_account, :string
User.all.each do |user|
user.update! ln_account: user.ln_login
end
end
end