add Link, Event classes to migration and use find_each