has_secure_password :recovery_password

This commit is contained in:
Karol Selak 2021-03-21 11:12:14 +01:00
parent 49998ee5b7
commit 639eb2ba04
5 changed files with 14 additions and 7 deletions

View file

@ -0,0 +1,5 @@
class ChangePasswordRecoveryCodeToRecoveryPasswordDigest < ActiveRecord::Migration[6.1]
def change
rename_column :users, :password_recovery_code, :recovery_password_digest
end
end

4
db/schema.rb generated
View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_03_20_233401) do
ActiveRecord::Schema.define(version: 2021_03_21_093857) do
create_table "authors", force: :cascade do |t|
t.string "first_name"
@ -43,7 +43,7 @@ ActiveRecord::Schema.define(version: 2021_03_20_233401) do
t.string "password_digest"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.string "password_recovery_code"
t.string "recovery_password_digest"
end
end