tokyorails/tokyorails — pull request #31 by lloydmeta (2012-05-16 10:00:15+00:00)
Title: Add Photos to Events

- Please make sure to run db:migrate
- Photos for events are cleared and imported via the high-res link from the Meetup API /2/photos call every time import_events is run. Alternatively, we could separate this into a separate rake task that is run every day.

In addition, to extrapolate in this direction, we could perhaps have an intermediate-class (e.g. photo_url) that for checking against photos that currently exist in the system; of course. This class will only be used during the scheduled rake import/update tasks and never queried during actual application usage.

This normalization allows us to keep the Image table as slim as possible and to cut out the otherwise useless Photo_URL column from the Members table for a bit of a speed gain.