Use single table inheritance for Notes

Created by: dzaporozhets

In order to fix all problems with postgres and string as id i propose next:

  1. Create STI for notes. Create CommitNote < Note
  2. add commit_sha field to CommitNote.
  3. Migrate all commit-related notes to CommitNote
  4. Convert noteable_id to integer

What do you think?