password recovery wip

This commit is contained in:
Karol Selak 2021-03-21 10:36:09 +01:00
parent cd40ef66c6
commit 49998ee5b7
12 changed files with 70 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddPasswordRecoveryCodeToUsers < ActiveRecord::Migration[6.1]
def change
add_column :users, :password_recovery_code, :string
end
end

3
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_212922) do
ActiveRecord::Schema.define(version: 2021_03_20_233401) do
create_table "authors", force: :cascade do |t|
t.string "first_name"
@ -43,6 +43,7 @@ ActiveRecord::Schema.define(version: 2021_03_20_212922) 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"
end
end