example for migration to consumes and getByToken