In my data schema for user, I have
create_table "users", force: :cascade do |t|
t.string "name"
t.string "email"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.string "password_digest"
end
To hash the password we have ' t.string "password_digest"', but what if I want to add security question to users? Is there any default function for hash the answer for security question?