Associations for revisions and attachments