fix migration to handle rails 4 syntax