creates Post model with associations and validations, migrated successfully