created posts_attachments table
renamed posts_attachments migration to attachments_posts per rails 4 habtm naming convention
added test image for uploading
image uploads through POST work