migrations, models, relationships and posts index done