in the AddEventIdAtCreationToLinks migration, handle the case of links that don't yet have any events
actually save the link
add Link, Event classes to migration and use find_each
Merge pull request #305 from albertsun/safer-add-event-id-at-creation-to-links-migration

Small fix for the AddEventIdAtCreationToLinks migration