Add index to post model