-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[38] Create Rails User model #46
Conversation
bilalhankins
commented
Jul 18, 2024
- Replicated user model from challenge_gov Elixir schema using the schema_to_scaffold gem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that I've seen this, it doesn't look very useful. I'm not even sure we need the view helpers TBH. I think all we really want are the app/models and spec/models classes but those can be created pretty easily without the schema_to_scaffold
gem. instead let's try using https://github.com/ctran/annotate_models to add code comments to the model class based on the current schema.
…ge_platform into 38/create-user-model
app/models/user.rb
Outdated
# Virtual Attributes | ||
attr_accessor :email_confirmation, :password, :password_confirmation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the docs for the attribute method say it doesn't need to be backed by the DB. however, I'm not sure that we need these attributes anyways. AFAIK users shouldn't be able to reset their login.gov password from the app, and I don't know about the email_confirmation.
Co-authored-by: Stephen Chudleigh <stepchud@users.noreply.github.com>