Add item to two existing tables in database, update views
For a nonprofit website built with Ruby on Rails that allows administrators to post updates for initiatives the nonprofit has as well as specific sites they work on. Administrators could also upload media resources - like press releases - that have to do with those initiatives and places. The task was to tie the two together (initiatives/places and media resources) so that media resources could optionally be associated with an initiative or place and appear in the "updates" section on the initiatives page if the media resource was one of the 3 most recent updates.
Required updating 3 models and running migrations to update the database schema to reflect the new relationship. Then, needed to update the ActiveAdmin view so admins could create and associate these different things. Finally, needed to update the views to populate the "Updates" section based on how recent the updates and media resources items were. Also wrote new tests to go with new behavior.
For a nonprofit website built with Ruby on Rails that allows administrators to post updates for initiatives the nonprofit has as well as specific sites they work on. Administrators could also upload media resources - like press releases - that have to do with those initiatives and places. The task was to tie the two together (initiatives/places and media resources) so that media resources could optionally be associated with an initiative or place and appear in the "updates" section on the initiatives page if the media resource was one of the 3 most recent updates.
Required updating 3 models and running migrations to update the database schema to reflect the new relationship. Then, needed to update the ActiveAdmin view so admins could create and associate these different things. Finally, needed to update the views to populate the "Updates" section based on how recent the updates and media resources items were. Also wrote new tests to go with new behavior.