mleong245 / bhnc-portal

Software project for Bernal Heights Neighborhood Center. CS 169 Software Engineering, Spring 2015
0 stars 1 forks source link

Volunteer application: two booleans vs three-state string tracking? #30

Open mleong245 opened 9 years ago

mleong245 commented 9 years ago

Two booleans for pending and confirmed or track all three states in one column?

mleong245 commented 9 years ago

Solution: extract out the volunteer application from user model into a new model

mleong245 commented 9 years ago

Implement an association between a user and its volunteer application.

When looking at list of users in Rails admin, a column will show up that will have the link to the user's volunteer application.

mleong245 commented 9 years ago

Accept / decline actions that would be displayed as buttons on the Rails admin interface, that would appropriately change the "approved" boolean on the user to true and the "processed" boolean on the application model to true as well.

mleong245 commented 9 years ago

The user boolean is "Volunteer" and the application boolean is "Approved"