Modified migration and added test case for poll app