Fix migration failing with PostgreSQL #145

Merged
raucao merged 2 commits from bugfix/144-postgres_migration into master 2023-09-03 13:32:36 +00:00
2 changed files with 3 additions and 4 deletions
Showing only changes of commit 96c669ab4e - Show all commits

View File

@ -84,13 +84,12 @@ ActiveRecord::Schema[7.0].define(version: 2023_05_23_120753) do
t.datetime "confirmed_at", precision: nil
t.datetime "confirmation_sent_at", precision: nil
t.string "unconfirmed_email"
t.text "ln_login_ciphertext"
t.text "ln_password_ciphertext"
t.string "ln_account"
t.string "nostr_pubkey"
t.datetime "remember_created_at"
t.string "remember_token"
t.text "preferences"
t.string "nostr_pubkey"
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

View File

@ -25,7 +25,7 @@ RSpec.describe CreateLndhubAccountJob, type: :job do
context "with existing credentials stored" do
before do
user.ln_login = "foo"
user.ln_account = "foo"
user.ln_password = "bar"
user.save!
end
@ -36,7 +36,7 @@ RSpec.describe CreateLndhubAccountJob, type: :job do
expect(WebMock).to_not have_requested(:post, "http://localhost:3023/create")
user.reload
expect(user.ln_login).to eq("foo")
expect(user.ln_account).to eq("foo")
expect(user.ln_password).to eq("bar")
end
end