refactor attachment schema
Merge pull request #74 from koboshi/develop

refactor attachment schema