add scope to post model