Update some Rails 4 stuff
Make tests for attaching photos