Use single table inheritance for Notes
Created by: dzaporozhets
In order to fix all problems with postgres and string as id i propose next:
- Create STI for notes. Create CommitNote < Note
- add commit_sha field to CommitNote.
- Migrate all commit-related notes to CommitNote
- Convert noteable_id to integer
What do you think?