-
Notifications
You must be signed in to change notification settings - Fork 19
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
Wristband distribution #250
Conversation
elsif building | ||
@wristband = "Red" | ||
else | ||
@wristband = "Blue" |
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.
Can we please use a reasonable constant here rather than "Red" and "Blue" This new code will already have to change yearly (which sucks), but we should at least have semantically named constants
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.
Sounds like a good idea to me.
@@ -0,0 +1,5 @@ | |||
class AddBuildingStatusToOrganizationCategory < ActiveRecord::Migration | |||
def change | |||
add_column :organization_categories, :building_status, :boolean |
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.
Can this be is_building
? More Rails'esque and conveys that it's a boolean
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.
Yea that sounds better.
Temporary fix for issue #220