akkounts/db/migrate/20230111113139_add_ln_account_to_users.rb
Râu Cao 51952ecdc2
All checks were successful
continuous-integration/drone/push Build is passing
Add migration for unencrypted ln login field
2023-01-11 19:50:01 +08:00

10 lines
206 B
Ruby

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