added app_id index to migration