generate posts controller and post model. migrated db.