-
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
Add a (information) validity attribute to cards #53
Conversation
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.
Much better 👍
app/models/card.rb
Outdated
@@ -9,6 +9,7 @@ class Card < ApplicationRecord | |||
|
|||
enum card_type: [:youth, :adult, :activist, :organization, :network, :training] | |||
enum status: [:pending, :online, :incomplete, :change] | |||
enum validity: [:correct, :outdated, :disabled] |
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.
I would use: [:maintained, :abandoned, :disabled]
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.
Or [:maintained, :outdated, :disabled]
...?
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.
Or [:maintained, :solicited, :disabled], or [:maintained, :requested, :disabled] ?
Co-authored-by: Noémien Kocher <nkcr.je@gmail.com>
The attribute
validity
can have valuescorrect
,outdated
ordisabled
.It is updated accordingly in the cards check task and used in the card's edit form.