Include project_id when indexing commit

Blob is currently indexed with project_id, which is an integer and is located at the outer hash, making it more easily accessible. Commit however requires us from computing the key to access the nested hash, and grab the rid which is a string and requires casting.

By also indexing project_id for commits, the Rails' logic can be simplified.