Add migration for unencrypted ln login field
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
9
db/migrate/20230111113139_add_ln_account_to_users.rb
Normal file
9
db/migrate/20230111113139_add_ln_account_to_users.rb
Normal 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
|
||||
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2021_11_20_010540) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_01_11_113139) do
|
||||
create_table "donations", force: :cascade do |t|
|
||||
t.integer "user_id"
|
||||
t.integer "amount_sats"
|
||||
@@ -48,6 +48,7 @@ ActiveRecord::Schema[7.0].define(version: 2021_11_20_010540) do
|
||||
t.string "unconfirmed_email"
|
||||
t.text "ln_login_ciphertext"
|
||||
t.text "ln_password_ciphertext"
|
||||
t.string "ln_account"
|
||||
t.index ["email"], name: "index_users_on_email", unique: true
|
||||
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user